diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/fitz/filter-flate.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/source/fitz/filter-flate.c b/source/fitz/filter-flate.c index b306c9c3..4b01d0be 100644 --- a/source/fitz/filter-flate.c +++ b/source/fitz/filter-flate.c @@ -22,16 +22,14 @@ static void zfree(void *opaque, void *ptr) } static int -next_flated(fz_stream *stm, int outlen) +next_flated(fz_stream *stm, int required) { fz_flate *state = stm->state; fz_stream *chain = state->chain; z_streamp zp = &state->z; int code; unsigned char *outbuf = state->buffer; - - if (outlen > sizeof(state->buffer)) - outlen = sizeof(state->buffer); + int outlen = sizeof(state->buffer); if (stm->eof) return EOF; |