zlib: wrap deflateBound() too
[gitweb.git] / diff.c
diff --git a/diff.c b/diff.c
index c15c70f977150e6f8ac9d1d4d468c9592a2b059e..bac9a4bc22f96fd284a89c8c33a183672da3361b 100644 (file)
--- a/diff.c
+++ b/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;