summaryrefslogtreecommitdiff
path: root/src/zstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zstream.c')
-rw-r--r--src/zstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zstream.c b/src/zstream.c
index 85fa2e0e6..e75fb265e 100644
--- a/src/zstream.c
+++ b/src/zstream.c
@@ -134,7 +134,7 @@ int git_zstream_deflatebuf(git_buf *out, const void *in, size_t in_len)
while (!git_zstream_done(&zs)) {
size_t step = git_zstream_suggest_output_len(&zs), written;
- if ((error = git_buf_grow(out, out->asize + step)) < 0)
+ if ((error = git_buf_grow(out, out->size + step)) < 0)
goto done;
written = out->asize - out->size;