From 517c2344612bc0b8584ac1367b95aaed1e064bfe Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 14 Apr 2023 19:30:22 +0200 Subject: [PATCH] lib/zlib/GzipOutputStream: use MAX_WBITS --- src/lib/zlib/GzipOutputStream.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/zlib/GzipOutputStream.cxx b/src/lib/zlib/GzipOutputStream.cxx index 21276ee15..6d5fa1a79 100644 --- a/src/lib/zlib/GzipOutputStream.cxx +++ b/src/lib/zlib/GzipOutputStream.cxx @@ -13,7 +13,7 @@ GzipOutputStream::GzipOutputStream(OutputStream &_next) z.zfree = Z_NULL; z.opaque = Z_NULL; - constexpr int windowBits = 15; + constexpr int windowBits = MAX_WBITS; constexpr int gzip_encoding = 16; int result = deflateInit2(&z, Z_DEFAULT_COMPRESSION, Z_DEFLATED,