From 0b5c158cc717839956e541a99df9986423c4cae4 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Mon, 2 Jan 2017 16:17:43 -0800 Subject: [PATCH] Fix bug in gzwrite.c that produced corrupt gzip files. --- gzwrite.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- GitLab