diff options
Diffstat (limited to 'compress.c')
-rw-r--r-- | compress.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* compress.c -- compress a memory buffer | 1 | /* compress.c -- compress a memory buffer |
2 | * Copyright (C) 1995-2003 Jean-loup Gailly. | 2 | * Copyright (C) 1995-2005 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 | ||
@@ -75,5 +75,6 @@ int ZEXPORT compress (dest, destLen, source, sourceLen) | |||
75 | uLong ZEXPORT compressBound (sourceLen) | 75 | uLong ZEXPORT compressBound (sourceLen) |
76 | uLong sourceLen; | 76 | uLong sourceLen; |
77 | { | 77 | { |
78 | return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11; | 78 | return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + |
79 | (sourceLen >> 25) + 13; | ||
79 | } | 80 | } |