From c13c241a4ab61d018b8d04726e91a7b0397d29bd Mon Sep 17 00:00:00 2001 From: "Nicolas \"Pixel\" Noble" Date: Mon, 16 Aug 2010 23:45:17 +0200 Subject: Seems inflateInit2 doesn't really like 0 as windowsBit, unlike what's described. Let's force this to 15. --- lib/Handle.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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)); } -- cgit v1.2.3