diff options
author | akiyoshi <akiyoshi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-07 10:13:46 +0000 |
---|---|---|
committer | akiyoshi <akiyoshi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-12-07 10:13:46 +0000 |
commit | 07b5db25da3e3567f62cfa602bef5dd071a3b91c (patch) | |
tree | 81081d971b1cc2b33623b956e7e36cfe4da5f912 /io.c | |
parent | 02c45389c5e611e1521d5da4b4bca51ecf2c8d45 (diff) |
io.c (io_fwrite) : fix offset incrementation for VMS and Human68k.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7491 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -417,8 +417,7 @@ io_fwrite(str, fptr) } #if defined(__human68k__) || defined(__vms) do { - if (fputc(RSTRING(str)->ptr+offset, f) == EOF) { - offset++; + if (fputc(*(RSTRING(str)->ptr+(offset++)), f) == EOF) { if (ferror(f)) return -1L; break; } |