diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-23 09:49:17 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-03-23 09:49:17 +0000 |
commit | 3fe16354fba0675f5384bb2e4d7b65fcc9df5cbc (patch) | |
tree | d13bc72b7ea29bec168400fed877b4f46692b656 /io.c | |
parent | 530491c72fe537787ad3b0324aa6d6a61c87f0d3 (diff) |
String#chomp! etc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@133 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -159,12 +159,12 @@ io_write(io, str) #ifdef __human68k__ { - register UCHAR *ptr = str->ptr; - n = (int) str->len; + register UCHAR *ptr = RSTRING(str)->ptr; + n = (int) RSTRING(str)->len; while (--n >= 0) if (fputc(*ptr++, f) == EOF) rb_sys_fail(fptr->path); - n = ptr - str->ptr; + n = ptr - RSTRING(str)->ptr; } if (ferror(f)) rb_sys_fail(fptr->path); |