diff options
Diffstat (limited to '')
| -rw-r--r-- | compress.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* compress.c -- compress a memory buffer | 1 | /* compress.c -- compress a memory buffer |
| 2 | * Copyright (C) 1995-1996 Jean-loup Gailly. | 2 | * Copyright (C) 1995 Jean-loup Gailly. |
| 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 | ||
| @@ -22,13 +22,13 @@ | |||
| 22 | int compress (dest, destLen, source, sourceLen) | 22 | int compress (dest, destLen, source, sourceLen) |
| 23 | Bytef *dest; | 23 | Bytef *dest; |
| 24 | uLongf *destLen; | 24 | uLongf *destLen; |
| 25 | const Bytef *source; | 25 | Bytef *source; |
| 26 | uLong sourceLen; | 26 | uLong sourceLen; |
| 27 | { | 27 | { |
| 28 | z_stream stream; | 28 | z_stream stream; |
| 29 | int err; | 29 | int err; |
| 30 | 30 | ||
| 31 | stream.next_in = (Bytef*)source; | 31 | stream.next_in = source; |
| 32 | stream.avail_in = (uInt)sourceLen; | 32 | stream.avail_in = (uInt)sourceLen; |
| 33 | /* Check for source > 64K on 16-bit machine: */ | 33 | /* Check for source > 64K on 16-bit machine: */ |
| 34 | if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; | 34 | if ((uLong)stream.avail_in != sourceLen) return Z_BUF_ERROR; |
