diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-30 22:03:57 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-30 22:03:57 +0000 |
commit | 345c459abfcab0d9f50468ad49a5bc3087b2381e (patch) | |
tree | 1f57203b2233d5b8ea6852d0cbbf9a417d7a47df /sprintf.c | |
parent | 88bd76c7990e14f8ca6dc1055e1d17258620ba6b (diff) | |
download | ruby-345c459abfcab0d9f50468ad49a5bc3087b2381e.tar.gz |
io.c (rb_io_syswrite): avoid leaving garbage after write
As with IO#write, IO#syswrite also generates garbage which can
be harmful in hand-coded read-write loops.
* io.c (swrite_arg, swrite_do, swrite_end): new
(rb_io_syswrite): use new functions to cleanup garbage
[ruby-core:78898] [Bug #13085]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
0 files changed, 0 insertions, 0 deletions