diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:15:17 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:15:17 -0700 |
commit | e26a448e9673d67dc2866e11a48d24fc352e5f80 (patch) | |
tree | a2dc10debfd34979dde501afbf1cce6a6c3cbcb7 /compress.c | |
parent | 423eb40306489f9c88f7dba32c2f69179166730b (diff) | |
download | zlib-e26a448e9673d67dc2866e11a48d24fc352e5f80.tar.gz |
zlib 1.0.2v1.0.2
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,7 +3,7 @@ * For conditions of distribution and use, see copyright notice in zlib.h */ -/* $Id: compress.c,v 1.9 1996/01/30 21:59:09 me Exp $ */ +/* $Id: compress.c,v 1.10 1996/05/23 16:51:12 me Exp $ */ #include "zlib.h" @@ -30,9 +30,10 @@ int compress (dest, destLen, source, sourceLen) stream.next_in = (Bytef*)source; stream.avail_in = (uInt)sourceLen; +#ifdef MAXSEG_64K /* Check for source > 64K on 16-bit machine: */ if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; - +#endif stream.next_out = dest; stream.avail_out = (uInt)*destLen; if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; |