diff --git a/src/tinfzlib.c b/src/tinfzlib.c index dbacc1d..ea21a16 100644 --- a/src/tinfzlib.c +++ b/src/tinfzlib.c @@ -43,7 +43,7 @@ int tinf_zlib_uncompress(void *dest, unsigned int *destLen, d.source = (const unsigned char *)source; d.destStart = (unsigned char *)dest; - d.destRemaining = *destLen; + d.destSize = *destLen; res = tinf_zlib_uncompress_dyn(&d, sourceLen);