Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/xcvs/dist/src Fix compressed server accesses.



details:   https://anonhg.NetBSD.org/src/rev/9f0dd7637dc2
branches:  trunk
changeset: 749365:9f0dd7637dc2
user:      dsl <dsl%NetBSD.org@localhost>
date:      Fri Nov 27 18:38:29 2009 +0000

description:
Fix compressed server accesses.
According to http://cvs.savannah.gnu.org/viewvc/ccvs/src/?root=cvs
this was broken between revs 1.29 and 1.32 for a perion of 4 months
about 4 years ago.
Not sure at all why/how we have the broken version.
Our old code, the latest gnu code and this fix all differ slightly,
but have the same effect.

diffstat:

 external/gpl2/xcvs/dist/src/zlib.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r bba45397d56c -r 9f0dd7637dc2 external/gpl2/xcvs/dist/src/zlib.c
--- a/external/gpl2/xcvs/dist/src/zlib.c        Fri Nov 27 17:55:04 2009 +0000
+++ b/external/gpl2/xcvs/dist/src/zlib.c        Fri Nov 27 18:38:29 2009 +0000
@@ -229,7 +229,7 @@
           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 > 0, BUFFER_DATA_SIZE, &nread);
 
        if (status == -2)
            /* Don't try to recover from memory allcoation errors.  */



Home | Main Index | Thread Index | Old Index