From: Mark Adler Date: Tue, 3 Jan 2017 00:17:43 +0000 (-0800) Subject: Fix bug in gzwrite.c that produced corrupt gzip files. X-Git-Tag: 1.9.9-b1~704 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4135626a9a931fc0ca3e4b716879d684358844f8;p=thirdparty%2Fzlib-ng.git Fix bug in gzwrite.c that produced corrupt gzip files. --- diff --git a/gzwrite.c b/gzwrite.c index c1dd3ca4c..6746b6679 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -103,6 +103,7 @@ static int gz_comp(gz_statep state, int flush) { if (strm->avail_out == 0) { strm->avail_out = state->size; strm->next_out = state->out; + state->x.next = state->out; } state->x.next = strm->next_out; }