summaryrefslogtreecommitdiffstats
path: root/ext/zlib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 12:47:20 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-10-20 12:47:20 +0000
commitf71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d (patch)
treedb3928abc44090d749b6609bfb7ef49f2631a5c9 /ext/zlib
parent7008e5c98b9e0fa8deecafc3d0474f4ed838d17a (diff)
downloadruby-f71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d.tar.gz
ruby-f71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d.tar.xz
ruby-f71b2a1e2b0c272bcf2f1bae29ea9964d2f7201d.zip
* string.c (str_gsub): reentrant check. [ruby-dev:24432]
* backport all SEGV bug fixes from CVS HEAD. [ruby-dev:24536] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@7090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/zlib')
-rw-r--r--ext/zlib/zlib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 412c98244..0afd7e015 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -530,6 +530,7 @@ zstream_detach_buffer(z)
z->buf_filled = 0;
z->stream.next_out = 0;
z->stream.avail_out = 0;
+ RBASIC(dst)->klass = rb_cString;
return dst;
}