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

2
diff.c
View File

@ -1733,7 +1733,7 @@ static unsigned char *deflate_it(char *data,
memset(&stream, 0, sizeof(stream));
git_deflate_init(&stream, zlib_compression_level);
bound = deflateBound(&stream, size);
bound = git_deflate_bound(&stream, size);
deflated = xmalloc(bound);
stream.next_out = deflated;
stream.avail_out = bound;