From fb00fda903bbd128952a8ecac4b4f6b459245012 Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Thu, 8 Dec 2011 10:16:31 -0800 Subject: Fix gzwrite.c to accommodate reduced memory zlib compilation. gzwrite.c had hard-coded parameters to deflateInit2() which could contradict compile-time options for the use of less memory and fewer code bits. This patch suggested by Karsten Saunte fixes that. --- gzwrite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gzwrite.c') diff --git a/gzwrite.c b/gzwrite.c index 6c991fe..2dcb3fc 100644 --- a/gzwrite.c +++ b/gzwrite.c @@ -40,7 +40,7 @@ local int gz_init(state) strm->zfree = Z_NULL; strm->opaque = Z_NULL; ret = deflateInit2(strm, state->level, Z_DEFLATED, - 15 + 16, 8, state->strategy); + MAX_WBITS + 16, DEF_MEM_LEVEL, state->strategy); if (ret != Z_OK) { free(state->out); free(state->in); -- cgit v1.2.3-55-g6feb