X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=gzwrite.c;h=c7b5651d70b994e20222a734c620f68e11e0dc84;hb=38e8ce32afbaa82f67d992b9f3056f281fe69259;hp=b86625146162766b67dddf32d698398ae286fca1;hpb=cca27e95cf2bf057b2bbea93702135da3ca7be45;p=zlib.git diff --git a/gzwrite.c b/gzwrite.c index b866251..c7b5651 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -1,5 +1,5 @@ /* gzwrite.c -- zlib functions for writing gzip files - * Copyright (C) 2004, 2005, 2010, 2011, 2012, 2013 Mark Adler + * Copyright (C) 2004-2017 Mark Adler * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -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; } }