update zlib to v1.2.8

This commit is contained in:
Tetsuo55
2013-06-22 17:39:46 +02:00
parent d86185ca54
commit 88d1195f93
23 changed files with 1920 additions and 912 deletions

View File

@ -30,7 +30,7 @@ int ZEXPORT uncompress (dest, destLen, source, sourceLen)
z_stream stream;
int err;
stream.next_in = (Bytef*)source;
stream.next_in = (z_const Bytef *)source;
stream.avail_in = (uInt)sourceLen;
/* Check for source > 64K on 16-bit machine: */
if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR;