From d310fc7ff220b1bfc43922fe6a69b80d57fe5dc8 Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Sun, 25 Jan 2004 03:18:43 +0000 Subject: [PATCH] bug with zlib Reset - undocumented stuff - patch sent to gzip org but no repsonse, it seems unmaintained (zzip/file.c zziplib.spec) --- zzip/file.c | 4 +++- zziplib.spec | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/zzip/file.c b/zzip/file.c index 1dd2eb8..2ca6883 100644 --- a/zzip/file.c +++ b/zzip/file.c @@ -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; } diff --git a/zziplib.spec b/zziplib.spec index 032d152..d07fe91 100644 --- a/zziplib.spec +++ b/zziplib.spec @@ -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 -- 2.40.0