[macruby-changes] [4550] MacRuby/trunk/ext/zlib/zlib.c
source_changes at macosforge.org
source_changes at macosforge.org
Tue Sep 28 06:35:30 PDT 2010
Revision: 4550
http://trac.macosforge.org/projects/ruby/changeset/4550
Author: watson1978 at gmail.com
Date: 2010-09-28 06:35:28 -0700 (Tue, 28 Sep 2010)
Log Message:
-----------
Fixed a Zlib::GzipReader#readlines.
Modified Paths:
--------------
MacRuby/trunk/ext/zlib/zlib.c
Modified: MacRuby/trunk/ext/zlib/zlib.c
===================================================================
--- MacRuby/trunk/ext/zlib/zlib.c 2010-09-28 08:28:37 UTC (rev 4549)
+++ MacRuby/trunk/ext/zlib/zlib.c 2010-09-28 13:35:28 UTC (rev 4550)
@@ -502,8 +502,7 @@
return zstream_detach_buffer(z);
}
- rb_bstr_resize(z->buf, len);
- dst = z->buf;
+ dst = 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/60a91096/attachment.html>
More information about the macruby-changes
mailing list