diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-23 06:52:39 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-06-23 06:52:39 +0000 |
commit | 715c2de68f06da7372d7a8d85cd8d59eb56e0ac9 (patch) | |
tree | 5b3dd49b72fbb459deeab5e049f85f5718eafd8e /file.c | |
parent | e717322bcec5618d8b653026c336fa13957cc1a0 (diff) | |
download | ruby-715c2de68f06da7372d7a8d85cd8d59eb56e0ac9.tar.gz ruby-715c2de68f06da7372d7a8d85cd8d59eb56e0ac9.tar.xz ruby-715c2de68f06da7372d7a8d85cd8d59eb56e0ac9.zip |
* string.c (rb_str_upto): generate sequence according to "succ"
order. formerly check was done by dictionary order.
[ruby-talk:74138]
* string.c (rb_string_value): fill constant empty string along
with setting ELTS_SHARED if str->ptr is NULL. [ruby-core:01179]
* string.c (rb_string_value_ptr): ditto.
* string.c (rb_check_string_type): ditto.
* string.c (str_gsub): move END(0) check before mbclen2().
* string.c (scan_once): reduce END(0) check.
* io.c (rb_io_initialize): accept fixnum mode.
* eval.c (error_print): replace strchr() by memchr(), einfo may
contain "\0".
* pack.c (pack_unpack): range check for "@" move; initialize check
for "m".
* error.c (syserr_initialize): avoid buffer overflow.
* file.c (rb_file_s_readlink): expand buffer until readlink
succeed.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1275,7 +1275,7 @@ rb_file_s_readlink(klass, path) SafeStringValue(path); buf = xmalloc(size); - if ((rv = readlink(RSTRING(path)->ptr, buf, size)) == size) { + while ((rv = readlink(RSTRING(path)->ptr, buf, size)) == size) { size *= 2; buf = xrealloc(buf, size); } |