diff options
Diffstat (limited to 'devel/cvs-devel/files/patch-zlib-read-compressed')
-rw-r--r-- | devel/cvs-devel/files/patch-zlib-read-compressed | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/cvs-devel/files/patch-zlib-read-compressed b/devel/cvs-devel/files/patch-zlib-read-compressed new file mode 100644 index 000000000000..e1d137e99264 --- /dev/null +++ b/devel/cvs-devel/files/patch-zlib-read-compressed @@ -0,0 +1,11 @@ +--- src/zlib.c~ 3 Jun 2005 18:26:09 -0000 1.31 ++++ src/zlib.c 27 Oct 2005 17:59:49 -0000 +@@ -229,7 +229,7 @@ compress_buffer_input (void *closure, ch + would fetch all the available bytes, and at least one byte. */ + + status = (*cb->buf->input) (cb->buf->closure, bd->text, +- need, BUFFER_DATA_SIZE, &nread); ++ need ? 1 : 0, BUFFER_DATA_SIZE, &nread); + + if (status == -2) + /* Don't try to recover from memory allcoation errors. */ |