Revision: 4551 http://trac.macosforge.org/projects/ruby/changeset/4551 Author: watson1978@gmail.com Date: 2010-09-28 07:01:57 -0700 (Tue, 28 Sep 2010) Log Message: ----------- oops, I forgot to make BSTR. Modified Paths: -------------- MacRuby/trunk/ext/zlib/zlib.c Modified: MacRuby/trunk/ext/zlib/zlib.c =================================================================== --- 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);