summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/tar/read_header.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tar/read_header.c b/lib/tar/read_header.c
index 20e7a9f..7d209ae 100644
--- a/lib/tar/read_header.c
+++ b/lib/tar/read_header.c
@@ -160,7 +160,7 @@ static int read_pax_header(FILE *fp, sqfs_u64 entsize, unsigned int *set_by_pax,
*set_by_pax |= PAX_MTIME;
} else if (!strncmp(line, "GNU.sparse.name=", 16)) {
free(out->name);
- out->name = strdup(line + 5);
+ out->name = strdup(line + 16);
if (out->name == NULL)
goto fail_errno;
*set_by_pax |= PAX_NAME;