From 56bcb184fac036a45cb8937238d51778d0a796aa Mon Sep 17 00:00:00 2001 From: Mark Adler Date: Fri, 9 Sep 2011 23:11:37 -0700 Subject: zlib 0.99 --- uncompr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'uncompr.c') diff --git a/uncompr.c b/uncompr.c index b423696..3431561 100644 --- a/uncompr.c +++ b/uncompr.c @@ -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; -- cgit v1.2.3-55-g6feb