summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-22 16:21:27 +0000
committerocean <ocean@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-08-22 16:21:27 +0000
commiteafa161031a4b548d013e4cb00681017dfa4bd3a (patch)
treeee04ec26bdffd12b7aa40c62fd61a70fab001c8e
parent064fc35b860ddb444b9527b6400c078c95586cfa (diff)
downloadruby-eafa161031a4b548d013e4cb00681017dfa4bd3a.tar.gz
ruby-eafa161031a4b548d013e4cb00681017dfa4bd3a.tar.xz
ruby-eafa161031a4b548d013e4cb00681017dfa4bd3a.zip
* sprintf.c (ruby__sfvwrite): should move `buf' to the end of
`result'. [ruby-dev:26859] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9019 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--sprintf.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index e6e41e9d1..3a7c47b75 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 23 01:11:40 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * sprintf.c (ruby__sfvwrite): should move `buf' to the end of
+ `result'. [ruby-dev:26859]
+
Mon Aug 22 23:51:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
* parse.y: ONIG_OPTION_CAPTURE_GROUP conflicts with
diff --git a/sprintf.c b/sprintf.c
index 254b080d9..129c4b78a 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -868,6 +868,7 @@ ruby__sfvwrite(fp, uio)
if ((len = uio->uio_resid) == 0)
return 0;
CHECK(len);
+ buf += blen;
fp->_w = bsiz;
for (iov = uio->uio_iov; len > 0; ++iov) {
MEMCPY(buf, iov->iov_base, char, n = iov->iov_len);