]> granicus.if.org Git - zziplib/commitdiff
bug with zlib Reset - undocumented stuff - patch sent to gzip org
authorGuido Draheim <guidod@gmx.de>
Sun, 25 Jan 2004 03:18:43 +0000 (03:18 +0000)
committerGuido Draheim <guidod@gmx.de>
Sun, 25 Jan 2004 03:18:43 +0000 (03:18 +0000)
 but no repsonse, it seems unmaintained
 (zzip/file.c zziplib.spec)

zzip/file.c
zziplib.spec

index 1dd2eb89babfe32b62327c7749087740dacc13e3..2ca68834f6633e0b8c81a0e6448ca3f67af28118 100644 (file)
@@ -837,7 +837,9 @@ zzip_rewind(ZZIP_FILE *fp)
     { /* method == 8, deflate */
         err = inflateReset(&fp->d_stream);
         if (err != Z_OK) { goto error; }
-        
+
+       /* start over at next inflate with a fresh read() */
+       fp->d_stream.avail_in = 0;
         fp->crestlen = fp->csize;
     }
 
index 032d1521a5bdd59f30cb7a1faef89f0557e8b032..d07fe9179dfac661ec14960a70431257b66ba60d 100644 (file)
@@ -1,7 +1,7 @@
 %define lib   lib010
 Summary:      ZZipLib - libZ-based ZIP-access Library
 Name:         zziplib
-Version:      0.13.32
+Version:      0.13.33
 Release:      1mdk
 Serial:       1
 Copyright:    LGPL