diff --git a/gzwrite.c b/gzwrite.c index a2ee573d..1ec1da40 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; } }