summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-04 22:03:24 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-04 22:03:24 +0000
commit6da12f73b1e13452853bbed9617319535efda76c (patch)
tree8d3b5f0611ea1c68557aca358b5e3462fb7d9dba /ext
parent33b91754a6a03a27e20e72c22ffc716f3e0dd86e (diff)
downloadruby-6da12f73b1e13452853bbed9617319535efda76c.tar.gz
ruby-6da12f73b1e13452853bbed9617319535efda76c.tar.xz
ruby-6da12f73b1e13452853bbed9617319535efda76c.zip
* ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):
should clear data from the buffer which already been output. git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/openssl/lib/openssl/buffering.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb
index bd11afe04..761a01748 100644
--- a/ext/openssl/lib/openssl/buffering.rb
+++ b/ext/openssl/lib/openssl/buffering.rb
@@ -182,7 +182,7 @@ module Buffering
remain -= nwrote
nwritten += nwrote
end
- @wbuffer = ""
+ @wbuffer[0,nwritten] = ""
end
end