summaryrefslogtreecommitdiff
path: root/src/compress.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/compress.c')
-rw-r--r--src/compress.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compress.c b/src/compress.c
index 9b6607d..3137145 100644
--- a/src/compress.c
+++ b/src/compress.c
@@ -78,7 +78,7 @@ struct stream *stream_deflate(struct stream *s, size_t len) {
do {
strm.avail_out = len;
strm.next_out = (unsigned char *) new->_cur;
- deflate(&strm, Z_NO_FLUSH); // Flush param may cause issues.
+ deflate(&strm, Z_FINISH);
} while (strm.avail_out == 0);
new->len = len - strm.avail_out;