diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ustar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ustar.c b/src/ustar.c index 989794b..c183560 100644 --- a/src/ustar.c +++ b/src/ustar.c @@ -93,7 +93,7 @@ _opkg_opk_ustar_next(struct opkg_opk_ustar *ustar, return OPKG_OPK_END; } - if (memcmp(header->magic, "ustar\0", sizeof(header->magic)) != 0) { + if (memcmp(header->magic, "ustar", strlen("ustar")) != 0) { return OPKG_OPK_ERROR; } |