aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backends/saves/compressed/compressed-saves.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/saves/compressed/compressed-saves.cpp b/backends/saves/compressed/compressed-saves.cpp
index 14a77e6617..e987b0de59 100644
--- a/backends/saves/compressed/compressed-saves.cpp
+++ b/backends/saves/compressed/compressed-saves.cpp
@@ -77,7 +77,7 @@ public:
// Adding 32 to windowBits indicates to zlib that it is supposed to
// automatically detect whether gzip or zlib headers are used for
// the compressed file.
- _zlibErr = inflateInit2(&_stream, MAX_WBITS + 32);
+ _zlibErr = inflateInit2(&_stream, MAX_WBITS);
if (_zlibErr != Z_OK)
return;
@@ -201,7 +201,7 @@ public:
_zlibErr = deflateInit2(&_stream,
Z_DEFAULT_COMPRESSION,
Z_DEFLATED,
- MAX_WBITS + 16,
+ MAX_WBITS,
8,
Z_DEFAULT_STRATEGY);
assert(_zlibErr == Z_OK);