summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ustar.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ustar.c b/src/ustar.c
index f14a3d4..3c57ba5 100644
--- a/src/ustar.c
+++ b/src/ustar.c
@@ -363,7 +363,8 @@ opkg_opk_ustar_write_trailer(struct opkg_opk_ustar *ustar)
if (opkg_opk_gzip_write(ustar->gzip, ustar->record,
OPKG_OPK_USTAR_RECORD_SIZE, 0) != OPKG_OPK_OK ||
opkg_opk_gzip_write(ustar->gzip, ustar->record,
- OPKG_OPK_USTAR_RECORD_SIZE, 0) != OPKG_OPK_OK) {
+ OPKG_OPK_USTAR_RECORD_SIZE, 1) != OPKG_OPK_END)
+ {
return OPKG_OPK_ERROR;
}
return OPKG_OPK_OK;