diff options
author | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-08-16 23:45:17 +0200 |
---|---|---|
committer | Nicolas "Pixel" Noble <pixel@nobis-crew.org> | 2010-08-16 23:45:17 +0200 |
commit | c13c241a4ab61d018b8d04726e91a7b0397d29bd (patch) | |
tree | 7a44b9f2f9c737f5fbfa6f1a58bd7680667764b0 /lib | |
parent | bf10155cfb5109a251f5b1542755fea139c705a5 (diff) |
Seems inflateInit2 doesn't really like 0 as windowsBit, unlike what's described. Let's force this to 15.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Handle.cc | 2 |
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)); } |