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 | 4e9b8d3f137201d3dd68a17554578a59057f3ff4 (patch) | |
| tree | 81081d971b1cc2b33623b956e7e36cfe4da5f912 /io.c | |
| parent | 62633d319a4b327cbe642abd01fd43fe0866e1ff (diff) | |
| download | ruby-4e9b8d3f137201d3dd68a17554578a59057f3ff4.tar.gz ruby-4e9b8d3f137201d3dd68a17554578a59057f3ff4.tar.xz ruby-4e9b8d3f137201d3dd68a17554578a59057f3ff4.zip | |
io.c (io_fwrite) : fix offset incrementation for VMS and Human68k.
git-svn-id: http://svn.ruby-lang.org/repos/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; } |
