zlib: wrap deflateBound() too

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2011-06-10 11:18:17 -07:00
parent 55bb5c9147
commit 225a6f1068
8 changed files with 17 additions and 10 deletions

View File

@ -132,7 +132,7 @@ static unsigned long do_compress(void **pptr, unsigned long size)
memset(&stream, 0, sizeof(stream));
git_deflate_init(&stream, pack_compression_level);
maxsize = deflateBound(&stream, size);
maxsize = git_deflate_bound(&stream, size);
in = *pptr;
out = xmalloc(maxsize);