diff --git a/archive-zip.c b/archive-zip.c
index 081ff830c8b2345d2cf843f07496365934da0d6b..72d55a58ac60019f9f6175d4c86af47348630762 100644 (file)
--- a/archive-zip.c
+++ b/archive-zip.c
static void *zlib_deflate(void *data, unsigned long size,
int compression_level, unsigned long *compressed_size)
{
- z_stream stream;
+ git_zstream stream;
unsigned long maxsize;
void *buffer;
int result;
memset(&stream, 0, sizeof(stream));
git_deflate_init(&stream, compression_level);
- maxsize = deflateBound(&stream, size);
+ maxsize = git_deflate_bound(&stream, size);
buffer = xmalloc(maxsize);
stream.next_in = data;