summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;