diff options
author | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-09 15:49:17 +0200 |
---|---|---|
committer | Szczepan Zalega <szczepan@nitrokey.com> | 2016-08-09 18:34:00 +0200 |
commit | 70518b294096ef51525853477378690f92584b73 (patch) | |
tree | 185e71d8bb8c824a0c7e5d9d459170d66389a740 /misc.cc | |
parent | ba4d36c38c0017415129a5674c0f7133e6d76f9d (diff) | |
download | libnitrokey-70518b294096ef51525853477378690f92584b73.tar.gz libnitrokey-70518b294096ef51525853477378690f92584b73.tar.bz2 |
Remove compilation warning regarding printf format in hexdump
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'misc.cc')
-rw-r--r-- | misc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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++) { |