diff options
Diffstat (limited to 'archivers/ruby-zlib/patches/patch-aa')
-rw-r--r-- | archivers/ruby-zlib/patches/patch-aa | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/archivers/ruby-zlib/patches/patch-aa b/archivers/ruby-zlib/patches/patch-aa new file mode 100644 index 00000000000..f973633d34d --- /dev/null +++ b/archivers/ruby-zlib/patches/patch-aa @@ -0,0 +1,16 @@ +$NetBSD: patch-aa,v 1.1 2001/12/30 16:49:41 taca Exp $ + +--- zlib.c.orig Tue Sep 26 14:47:02 2000 ++++ zlib.c +@@ -274,8 +274,9 @@ + memmove(RSTRING(z->buf)->ptr, RSTRING(z->buf)->ptr + len, + z->buf_filled); + z->stream.next_out = RSTRING(z->buf)->ptr + z->buf_filled; +- z->stream.avail_out = (z->buf_filled < ZSTREAM_AVAIL_OUT_STEP) ? +- z->buf_filled : ZSTREAM_AVAIL_OUT_STEP; ++ z->stream.avail_out = RSTRING(z->buf)->len - z->buf_filled; ++ if (z->stream.avail_out > ZSTREAM_AVAIL_OUT_STEP) ++ z->stream.avail_out = ZSTREAM_AVAIL_OUT_STEP; + + return dst; + } |