diff options
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; |