summaryrefslogtreecommitdiff
path: root/source/fitz/filter-flate.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-11-20 23:33:33 +0100
committerTor Andersson <tor@ccxvii.net>2014-12-03 01:33:00 +0100
commit5add23c7233c3f34fdfa6387873b1d3bdb93e1d6 (patch)
treeccdc25fbbd79dec830454e91bc8a6f7fc3888b1e /source/fitz/filter-flate.c
parent76e815e7e530370abf59d5863886b37bc6ebaa16 (diff)
downloadmupdf-5add23c7233c3f34fdfa6387873b1d3bdb93e1d6.tar.xz
Add ZIP file and directory reading module.
Diffstat (limited to 'source/fitz/filter-flate.c')
-rw-r--r--source/fitz/filter-flate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fitz/filter-flate.c b/source/fitz/filter-flate.c
index 4b01d0be..b66661cc 100644
--- a/source/fitz/filter-flate.c
+++ b/source/fitz/filter-flate.c
@@ -105,7 +105,7 @@ rebind_flated(fz_stream *s)
}
fz_stream *
-fz_open_flated(fz_stream *chain)
+fz_open_flated(fz_stream *chain, int window_bits)
{
fz_flate *state = NULL;
int code = Z_OK;
@@ -125,7 +125,7 @@ fz_open_flated(fz_stream *chain)
state->z.next_in = NULL;
state->z.avail_in = 0;
- code = inflateInit(&state->z);
+ code = inflateInit2(&state->z, window_bits);
if (code != Z_OK)
fz_throw(ctx, FZ_ERROR_GENERIC, "zlib error: inflateInit: %s", state->z.msg);
}