diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/io_gunzip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io_gunzip.c b/src/io_gunzip.c index 70f5b6f..554a95a 100644 --- a/src/io_gunzip.c +++ b/src/io_gunzip.c @@ -104,7 +104,7 @@ static ssize_t gzi_read(struct apk_istream *is, void *ptr, size_t size) inflateEnd(&gis->zs); if (inflateInit2(&gis->zs, 15+32) != Z_OK) return -ENOMEM; - if (gis->cb) goto ret; + if (gis->cb && gis->zs.avail_out != size) goto ret; break; case Z_OK: break; |