[macruby-changes] [4551] MacRuby/trunk/ext/zlib/zlib.c

source_changes at macosforge.org source_changes at macosforge.org
Tue Sep 28 07:02:00 PDT 2010


Revision: 4551
          http://trac.macosforge.org/projects/ruby/changeset/4551
Author:   watson1978 at 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);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20100928/e7566a11/attachment.html>


More information about the macruby-changes mailing list