summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 03:42:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 03:42:53 +0000
commitb5e6d7661273fad6d384f16d0b8d5a2f434df45f (patch)
tree8ddc571fbb912dfa9de87deec6ed28720ae9744b /io.c
parent20f7d6b6f25df8d0b96bd19afa258b077e508c30 (diff)
downloadruby-b5e6d7661273fad6d384f16d0b8d5a2f434df45f.tar.gz
ruby-b5e6d7661273fad6d384f16d0b8d5a2f434df45f.tar.xz
ruby-b5e6d7661273fad6d384f16d0b8d5a2f434df45f.zip
* io.c (rb_io_getline): rs modification check should not interfere in the loop.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@7085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index f01aa0149..88fdd8ae8 100644
--- a/io.c
+++ b/io.c
@@ -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) {