1 $DragonFly: src/gnu/usr.bin/cvs/cvs/Attic/zlib.c.patch,v 1.1 2005/12/07 13:42:57 corecode Exp $
3 ===================================================================
4 RCS file: /space/cvs/dragonfly/src/contrib/cvs-1.12/src/zlib.c,v
5 retrieving revision 1.1.1.1
6 diff -u -r1.1.1.1 zlib.c
7 --- src/zlib.c 7 Dec 2005 00:15:26 -0000 1.1.1.1
8 +++ src/zlib.c 7 Dec 2005 13:39:09 -0000
10 would fetch all the available bytes, and at least one byte. */
12 status = (*cb->buf->input) (cb->buf->closure, bd->text,
13 - need, BUFFER_DATA_SIZE, &nread);
14 + need > 0 ? 1 : 0, BUFFER_DATA_SIZE, &nread);
17 /* Don't try to recover from memory allcoation errors. */