aboutsummaryrefslogtreecommitdiffstats
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
commitd2847d92cd69a335b4904f9891077eed4363af76 (patch)
tree56f4aa00ae45ab692b27f0b20d8826fdf303be6b
parentbc81591be40e9cf48d78e73206cce48ec4280ad8 (diff)
downloadruby-d2847d92cd69a335b4904f9891077eed4363af76.tar.gz
* ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):
should clear data from the buffer which already been output. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--ext/openssl/lib/openssl/buffering.rb2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1b5c3fc38d..82c0becf11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Mon Sep 5 07:01:12 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):
+ should clear data from the buffer which already been output.
+
Sun Sep 4 15:01:35 2005 Minero Aoki <aamine@loveruby.net>
* parse.y (f_arg): Ripper should not do semantic check.
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb
index 27bf62bda7..8800aa53cc 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