summaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-26 14:52:40 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-26 14:52:40 +0000
commite835b9fd0ccd4efbf593b4065912e114da21d1dd (patch)
treef3ac464d5ad02d783bc0720e9623af57b739a693 /io.c
parentbf874974c7f71c52bb281ec5be38c5c6b0c2d376 (diff)
downloadruby-e835b9fd0ccd4efbf593b4065912e114da21d1dd.tar.gz
ruby-e835b9fd0ccd4efbf593b4065912e114da21d1dd.tar.xz
ruby-e835b9fd0ccd4efbf593b4065912e114da21d1dd.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/branches/ruby_1_8@7114 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 59dc9265c..01ff8c9d0 100644
--- a/io.c
+++ b/io.c
@@ -1301,7 +1301,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) {