Import from zlib-1.2.5

This commit is contained in:
Ralf Corsepius
2011-03-18 10:11:38 +00:00
parent 94a2eccb2a
commit 43b1d3af77
+2 -1
View File
@@ -55,7 +55,8 @@ local int gz_avail(state)
if (state->err != Z_OK)
return -1;
if (state->eof == 0) {
if (gz_load(state, state->in, state->size, &(strm->avail_in)) == -1)
if (gz_load(state, state->in, state->size,
(unsigned *)&(strm->avail_in)) == -1)
return -1;
strm->next_in = state->in;
}