diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-20 03:42:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-10-20 03:42:53 +0000 |
commit | 30544883773f979b123ac9d00776cfcdf9c5c82c (patch) | |
tree | 8ddc571fbb912dfa9de87deec6ed28720ae9744b /io.c | |
parent | e447cd5add7e3357c6e8e117e48cb5d1d1c2d1a8 (diff) | |
download | ruby-30544883773f979b123ac9d00776cfcdf9c5c82c.tar.gz |
* io.c (rb_io_getline): rs modification check should not interfere in the loop.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1428,7 +1428,7 @@ rb_io_getline(rs, fptr) while ((c = appendline(fptr, newline, &str)) != EOF && (c != newline || RSTRING(str)->len < rslen || - (rspara || rscheck(rsptr,rslen,rs)) || + (rspara || rscheck(rsptr,rslen,rs), 0) || memcmp(RSTRING(str)->ptr+RSTRING(str)->len-rslen,rsptr,rslen))); if (rspara) { |