From a2f18bb6fccce1906ccfdc4c14810d2e3cf8aa52 Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Tue, 8 May 2007 15:28:33 +0200 Subject: [PATCH] deflate: Used -MAX_WBITS instead of hard coded -15. --- src/encoding/deflate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/encoding/deflate.c b/src/encoding/deflate.c index 07838e88a..c022b9e6e 100644 --- a/src/encoding/deflate.c +++ b/src/encoding/deflate.c @@ -60,7 +60,7 @@ deflate_open(struct stream_encoded *stream, int fd) data->fdread = fd; data->last_read = 0; - err = inflateInit2(&data->deflate_stream, -15); + err = inflateInit2(&data->deflate_stream, -MAX_WBITS); if (err != Z_OK) { mem_free(data); return -1;