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

@ -360,7 +360,7 @@ static void start_put(struct transfer_request *request)
/* Set it up */
memset(&stream, 0, sizeof(stream));
git_deflate_init(&stream, zlib_compression_level);
size = deflateBound(&stream, len + hdrlen);
size = git_deflate_bound(&stream, len + hdrlen);
strbuf_init(&request->buffer.buf, size);
request->buffer.posn = 0;