From 1e0e318b510dcd886b303f23f12652b60f1eb5b9 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 02 May 2023 20:06:51 -0400 Subject: gzip: Fix flushing deflate() apparently must be called with avail_in=0 and Z_FINISH after processing all input, not with Z_FINISH on the last non-empty input buffer. --- (limited to 'src/gzip.h') diff --git a/src/gzip.h b/src/gzip.h index 437b855..ecf659a 100644 --- a/src/gzip.h +++ b/src/gzip.h @@ -66,8 +66,7 @@ int opkg_opk_gzip_read(struct opkg_opk_gzip *gzip, void *record); int -opkg_opk_gzip_write(struct opkg_opk_gzip *gzip, void *record, size_t size, - int last); +opkg_opk_gzip_write(struct opkg_opk_gzip *gzip, void *record, size_t size); /* * Frees a decompression structure. -- cgit v0.9.1