diff --git a/gzwrite.c b/gzwrite.c index 2905cceb279eba8da484bdf91452b49a1cbb6ba9..61a4de7c580b8ad5d28d2f29b9316ffdd072019a 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -554,7 +554,7 @@ int ZEXPORT gzsetparams(file, level, strategy) /* change compression parameters for subsequent input */ if (state->size) { /* flush previous input with previous parameters before changing */ - if (strm->avail_in && gz_comp(state, Z_PARTIAL_FLUSH) == -1) + if (strm->avail_in && gz_comp(state, Z_BLOCK) == -1) return state->err; deflateParams(strm, level, strategy); }