mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
02c45389c5
commit
07b5db25da
2 changed files with 5 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Tue Dec 7 19:08:00 2004 Akiyoshi, Masamichi <akiyoshi@hp.com>
|
||||
|
||||
* io.c (io_fwrite): fix offset incrementation (for VMS and Human68k)
|
||||
|
||||
Tue Dec 7 00:27:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* process.c (proc_setgroups): [ruby-dev:25081]
|
||||
|
|
3
io.c
3
io.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue