From 8f58430e1ae27e41c385fac3c874bf722b7609da Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Thu, 6 Feb 2014 08:04:49 +0100 Subject: [PATCH] print sizes in a more stable fashion --- yubico-piv-tool.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yubico-piv-tool.c b/yubico-piv-tool.c index 1f4cf60..29be339 100644 --- a/yubico-piv-tool.c +++ b/yubico-piv-tool.c @@ -588,7 +588,7 @@ static bool import_key(SCARDHANDLE *card, enum enum_key_format key_format, this_size = (size_t)((in_data + in_size) - in_ptr); } if(verbose) { - fprintf(stderr, "going to send %zu bytes in this go.\n", this_size); + fprintf(stderr, "going to send %lu bytes in this go.\n", (unsigned long)this_size); } apdu.st.ins = 0xfe; apdu.st.p1 = algorithm; @@ -743,7 +743,7 @@ static bool import_cert(SCARDHANDLE *card, enum enum_key_format cert_format, this_size = (size_t)((certdata + cert_size) - certptr); } if(verbose) { - fprintf(stderr, "going to send %zu bytes in this go.\n", this_size); + fprintf(stderr, "going to send %lu bytes in this go.\n", (unsigned long)this_size); } apdu.st.ins = 0xdb; apdu.st.p1 = 0x3f;