aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 15:49:17 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2016-08-09 18:34:00 +0200
commit70518b294096ef51525853477378690f92584b73 (patch)
tree185e71d8bb8c824a0c7e5d9d459170d66389a740
parentba4d36c38c0017415129a5674c0f7133e6d76f9d (diff)
downloadlibnitrokey-70518b294096ef51525853477378690f92584b73.tar.gz
libnitrokey-70518b294096ef51525853477378690f92584b73.tar.bz2
Remove compilation warning regarding printf format in hexdump
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
-rw-r--r--misc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.cc b/misc.cc
index 0f1be45..a31d9bc 100644
--- a/misc.cc
+++ b/misc.cc
@@ -12,7 +12,7 @@ std::string hexdump(const char *p, size_t size) {
const char *pstart = p;
for (const char *pend = p + size; p < pend;) {
- snprintf(formatbuf, 128, "%04x\t", p - pstart);
+ snprintf(formatbuf, 128, "%04lx\t", p - pstart);
out << formatbuf;
for (const char *le = p + 16; p < le && p < pend; p++) {