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-e26a448e9673d67dc2866e11a48d24fc352e5f80.tar.bz2 zlib-e26a448e9673d67dc2866e11a48d24fc352e5f80.zip |
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 @@ | |||
3 | * For conditions of distribution and use, see copyright notice in zlib.h | 3 | * For conditions of distribution and use, see copyright notice in zlib.h |
4 | */ | 4 | */ |
5 | 5 | ||
6 | /* $Id: compress.c,v 1.9 1996/01/30 21:59:09 me Exp $ */ | 6 | /* $Id: compress.c,v 1.10 1996/05/23 16:51:12 me Exp $ */ |
7 | 7 | ||
8 | #include "zlib.h" | 8 | #include "zlib.h" |
9 | 9 | ||
@@ -30,9 +30,10 @@ int compress (dest, destLen, source, sourceLen) | |||
30 | 30 | ||
31 | stream.next_in = (Bytef*)source; | 31 | stream.next_in = (Bytef*)source; |
32 | stream.avail_in = (uInt)sourceLen; | 32 | stream.avail_in = (uInt)sourceLen; |
33 | #ifdef MAXSEG_64K | ||
33 | /* Check for source > 64K on 16-bit machine: */ | 34 | /* Check for source > 64K on 16-bit machine: */ |
34 | if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; | 35 | if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; |
35 | 36 | #endif | |
36 | stream.next_out = dest; | 37 | stream.next_out = dest; |
37 | stream.avail_out = (uInt)*destLen; | 38 | stream.avail_out = (uInt)*destLen; |
38 | if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; | 39 | if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; |