summaryrefslogtreecommitdiff
path: root/com32/libupload
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2011-06-20 21:31:51 -0700
committerH. Peter Anvin <hpa@zytor.com>2011-06-20 21:31:51 -0700
commitccd3c55c47543ee0447f4a5cb545f9d2a22327d9 (patch)
tree7d618060a9910bfbfa42c863e2d8831bcf351989 /com32/libupload
parent123e2fab97632347f07c361589e6c586d38df2ee (diff)
downloadsyslinux-ccd3c55c47543ee0447f4a5cb545f9d2a22327d9.tar.gz
libupload: use %zx to print a size_t argument
To print an argument of type size_t we should use the %z size modifier. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'com32/libupload')
-rw-r--r--com32/libupload/cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/libupload/cpio.c b/com32/libupload/cpio.c
index b3e1eb78..25b464d4 100644
--- a/com32/libupload/cpio.c
+++ b/com32/libupload/cpio.c
@@ -31,7 +31,7 @@ int cpio_hdr(struct upload_backend *be, uint32_t mode, size_t datalen,
cpio_pad(be);
- sprintf(hdr, "%06o%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x%08x",
+ sprintf(hdr, "%06o%08x%08x%08x%08x%08x%08x%08zx%08x%08x%08x%08x%08x%08x",
070701, /* c_magic */
inode++, /* c_ino */
mode, /* c_mode */