summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakiyoshi <akiyoshi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-07 10:13:46 +0000
committerakiyoshi <akiyoshi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-07 10:13:46 +0000
commit07b5db25da3e3567f62cfa602bef5dd071a3b91c (patch)
tree81081d971b1cc2b33623b956e7e36cfe4da5f912
parent02c45389c5e611e1521d5da4b4bca51ecf2c8d45 (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
-rw-r--r--ChangeLog4
-rw-r--r--io.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 6ed4ec8306..ab653c007e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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]
diff --git a/io.c b/io.c
index f2bcf0b38a..74ed5c74c5 100644
--- a/io.c
+++ b/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;
}