diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-23 12:46:17 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-23 12:46:17 +0000 |
commit | 2ed3d054795f494f89bb084bf47bd310002494c5 (patch) | |
tree | e644f2720d6218ffea14cbe8b72bcf4194bc1bd2 /io.c | |
parent | 4862c4ed2d1c14f8cb971955997f869cbb6e88ac (diff) | |
download | ruby-2ed3d054795f494f89bb084bf47bd310002494c5.tar.gz ruby-2ed3d054795f494f89bb084bf47bd310002494c5.tar.xz ruby-2ed3d054795f494f89bb084bf47bd310002494c5.zip |
* io.c (copy_stream_body): use io_binwrite instead of io_fwrite.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7464,7 +7464,7 @@ copy_stream_body(VALUE arg) rb_str_resize(str,len); read_buffered_data(RSTRING_PTR(str), len, src_fptr); if (dst_fptr) /* IO or filename */ - io_fwrite(str, dst_fptr, 0); + io_binwrite(str, dst_fptr, 0); else /* others such as StringIO */ rb_io_write(stp->dst, str); stp->total += len; |