summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2011-06-10 11:18:17 -0700
committerJunio C Hamano <gitster@pobox.com>2011-06-10 11:18:17 -0700
commit225a6f1068f71723a910e8565db4e252b3ca21fa (patch)
tree5c7e5981d71f9ef025d1acb11b3e6350da3278b7 /remote-curl.c
parent55bb5c9147a209eba44c3e9866704ece424c3d31 (diff)
downloadgit-225a6f1068f71723a910e8565db4e252b3ca21fa.tar.gz
zlib: wrap deflateBound() too
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote-curl.c b/remote-curl.c
index 3c7621aa06..13d8ceede3 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -476,7 +476,7 @@ static int post_rpc(struct rpc_state *rpc)
memset(&stream, 0, sizeof(stream));
git_deflate_init_gzip(&stream, Z_BEST_COMPRESSION);
- size = deflateBound(&stream, rpc->len);
+ size = git_deflate_bound(&stream, rpc->len);
gzip_body = xmalloc(size);
stream.next_in = (unsigned char *)rpc->buf;