diff options
Diffstat (limited to 'test/switchlevels.c')
-rw-r--r-- | test/switchlevels.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/switchlevels.c b/test/switchlevels.c index a4ec4b7..1e1fb00 100644 --- a/test/switchlevels.c +++ b/test/switchlevels.c @@ -68,7 +68,7 @@ static int compress_chunk(PREFIX3(stream) *strm, int level, int size, int last) goto done; } - compsize = 100 + 2 * PREFIX(deflateBound)(strm, size); + compsize = PREFIX(deflateBound)(strm, size); buf = malloc(size + compsize); if (buf == NULL) { fprintf(stderr, "Out of memory\n"); |