diff --git a/ChangeLog b/ChangeLog index e6e41e9d15..3a7c47b756 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Aug 23 01:11:40 2005 Hirokazu Yamamoto + + * sprintf.c (ruby__sfvwrite): should move `buf' to the end of + `result'. [ruby-dev:26859] + Mon Aug 22 23:51:19 2005 Yukihiro Matsumoto * parse.y: ONIG_OPTION_CAPTURE_GROUP conflicts with diff --git a/sprintf.c b/sprintf.c index 254b080d90..129c4b78a9 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);