summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-06 12:01:10 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-11-06 12:01:37 +0100
commit4548e0f202e7fc3d2e9cd8de98670c64711353d5 (patch)
tree8ef1b5c9ed362891738bf50481d475f379fbc445 /lib
parent4d46b361ff1371a6f3f4f89ed8ca81ee23e86de8 (diff)
Fix: use size_t printf macro in tar PAX header writer
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/tar/write_header.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tar/write_header.c b/lib/tar/write_header.c
index 6626d00..c235014 100644
--- a/lib/tar/write_header.c
+++ b/lib/tar/write_header.c
@@ -149,7 +149,8 @@ static int write_schily_xattr(FILE *fp, const struct stat *orig,
len = strlen(prefix) + strlen(it->key) + strlen(it->value) + 2;
len += num_digits(len) + 1;
- fprintf(fp, "%zu %s%s=%s\n", len, prefix, it->key, it->value);
+ fprintf(fp, PRI_SZ " %s%s=%s\n", len,
+ prefix, it->key, it->value);
}
return padd_file(fp, total_size);