summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2023-04-13 02:06:41 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2023-04-13 08:00:46 (EDT)
commitedd69d2e53d850344e23647507e9b5f84bbf0056 (patch)
treed2ed6821d26e07dfcb19cb585241b1f5561dc809 /src
parent7fff5e5955591ada15f4633a31932dc9d6c8086d (diff)
gzip: Set windowBits for gzip
Diffstat (limited to 'src')
-rw-r--r--src/gzip.c2
1 files changed, 1 insertions, 1 deletions
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;