From edd69d2e53d850344e23647507e9b5f84bbf0056 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 13 Apr 2023 02:06:41 -0400 Subject: gzip: Set windowBits for gzip --- (limited to 'src') diff --git a/src/gzip.c b/src/gzip.c index 75cfc80..472d656 100644 --- a/src/gzip.c +++ b/src/gzip.c @@ -28,7 +28,7 @@ _opkg_opk_gzip_init(struct opkg_opk_gzip_state *state) state->stream.zalloc = Z_NULL; state->stream.zfree = Z_NULL; state->stream.opaque = Z_NULL; - if (inflateInit(&state->stream) != Z_OK) { + if (inflateInit2(&state->stream, 15 + 16) != Z_OK) { return OPKG_OPK_ERROR; } return OPKG_OPK_OK; -- cgit v0.9.1