zlib 0.99

This commit is contained in:
Mark Adler
2011-09-09 23:11:37 -07:00
parent 25e5325501
commit 56bcb184fa
33 changed files with 1833 additions and 775 deletions

View File

@@ -1,5 +1,5 @@
/* uncompr.c -- decompress a memory buffer
* Copyright (C) 1995 Jean-loup Gailly.
* Copyright (C) 1995-1996 Jean-loup Gailly.
* For conditions of distribution and use, see copyright notice in zlib.h
*/
@@ -25,13 +25,13 @@
int uncompress (dest, destLen, source, sourceLen)
Bytef *dest;
uLongf *destLen;
Bytef *source;
const Bytef *source;
uLong sourceLen;
{
z_stream stream;
int err;
stream.next_in = source;
stream.next_in = (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;