zlib: wrap deflateBound() too
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
2
diff.c
2
diff.c
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user