summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-08-16 23:45:17 +0200
committerNicolas "Pixel" Noble <pixel@nobis-crew.org>2010-08-16 23:45:17 +0200
commitc13c241a4ab61d018b8d04726e91a7b0397d29bd (patch)
tree7a44b9f2f9c737f5fbfa6f1a58bd7680667764b0
parentbf10155cfb5109a251f5b1542755fea139c705a5 (diff)
Seems inflateInit2 doesn't really like 0 as windowsBit, unlike what's described. Let's force this to 15.
-rw-r--r--lib/Handle.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Handle.cc b/lib/Handle.cc
index 4ee233c..124f866 100644
--- a/lib/Handle.cc
+++ b/lib/Handle.cc
@@ -886,7 +886,7 @@ int Handle::zlib_inflate(Handle * in, Handle * out, bool raw) throw (GeneralExce
have = total_out = 0;
- ret = inflateInit2(&s, raw ? -15 : 0);
+ ret = inflateInit2(&s, raw ? -15 : 15);
if (ret != Z_OK) {
throw GeneralException("zlib: inflateInit() failed: " + String(ret));
}