diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-06 12:01:10 +0100 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-11-06 12:01:37 +0100 |
commit | 4548e0f202e7fc3d2e9cd8de98670c64711353d5 (patch) | |
tree | 8ef1b5c9ed362891738bf50481d475f379fbc445 /lib | |
parent | 4d46b361ff1371a6f3f4f89ed8ca81ee23e86de8 (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.c | 3 |
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); |