diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-02 20:06:51 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2023-05-02 20:06:51 (EDT) |
commit | 1e0e318b510dcd886b303f23f12652b60f1eb5b9 (patch) | |
tree | d068dfe4ba2ff42ec8a12298be4526ccf3d48928 /src/gzip.h | |
parent | f15f087cb77d44d8594836b353e5a77b1faeba28 (diff) |
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.
Diffstat (limited to 'src/gzip.h')
-rw-r--r-- | src/gzip.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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. |