From 4548e0f202e7fc3d2e9cd8de98670c64711353d5 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 6 Nov 2019 12:01:10 +0100 Subject: Fix: use size_t printf macro in tar PAX header writer Signed-off-by: David Oberhollenzer --- lib/tar/write_header.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/tar') 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); -- cgit v1.2.3