summaryrefslogtreecommitdiffstats
path: root/ext/openssl
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
commit4796441b9922f8a092028b4ce732d89a71638250 (patch)
tree56f4aa00ae45ab692b27f0b20d8826fdf303be6b /ext/openssl
parenta8639799a9594d5fda3ef26301b0c1aa16691632 (diff)
downloadruby-4796441b9922f8a092028b4ce732d89a71638250.tar.gz
ruby-4796441b9922f8a092028b4ce732d89a71638250.tar.xz
ruby-4796441b9922f8a092028b4ce732d89a71638250.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/trunk@9077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-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 27bf62bda..8800aa53c 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