diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:25:27 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-09-09 23:25:27 -0700 |
commit | b1c19ca6d82c98a8be6cd9cad7a9c5fa5e8e634e (patch) | |
tree | f0eeb8f52d07819f417411da5104c9d743dd46de /compress.c | |
parent | abf180a067223611620dd97dd5681df7c7fa7c9b (diff) | |
download | zlib-b1c19ca6d82c98a8be6cd9cad7a9c5fa5e8e634e.tar.gz |
zlib 1.2.3.1v1.2.3.1
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* compress.c -- compress a memory buffer - * Copyright (C) 1995-2003 Jean-loup Gailly. + * Copyright (C) 1995-2005 Jean-loup Gailly. * For conditions of distribution and use, see copyright notice in zlib.h */ @@ -75,5 +75,6 @@ int ZEXPORT compress (dest, destLen, source, sourceLen) uLong ZEXPORT compressBound (sourceLen) uLong sourceLen; { - return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; + return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + + (sourceLen >> 25) + 13; } |