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: v1.2.10~4 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=0b5c158cc717839956e541a99df9986423c4cae4;p=zlib.git Fix bug in gzwrite.c that produced corrupt gzip files. --- diff --git a/gzwrite.c b/gzwrite.c index a2ee573..1ec1da4 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -117,6 +117,7 @@ local int gz_comp(state, flush) if (strm->avail_out == 0) { strm->avail_out = state->size; strm->next_out = state->out; + state->x.next = state->out; } }