--- MacRuby/trunk/ext/zlib/zlib.c 2010-09-28 13:35:28 UTC (rev 4550)
+++ MacRuby/trunk/ext/zlib/zlib.c 2010-09-28 14:01:57 UTC (rev 4551)
@@ -502,7 +502,7 @@
return zstream_detach_buffer(z);
}
- dst = rb_str_subseq(z->buf, 0, len);
+ dst = rb_str_bstr(rb_str_subseq(z->buf, 0, len));
z->buf_filled -= len;
UInt8 *buf = BSTRING_PTR(z->buf);
memmove(buf, buf + len, z->buf_filled);