aboutsummaryrefslogtreecommitdiff
path: root/misc.cc
diff options
context:
space:
mode:
authorSzczepan Zalega <szczepan@nitrokey.com>2017-03-31 20:12:00 +0200
committerSzczepan Zalega <szczepan@nitrokey.com>2017-04-03 13:20:58 +0200
commit634f96e2d111820a6b02ca3027c3106a7dfd5d6b (patch)
treec03c178ec161d0ecf9c9ff5a73fc9efaf793b1a5 /misc.cc
parent5853af1966adf981f19510e06b3fb81cfb8d7b60 (diff)
downloadlibnitrokey-634f96e2d111820a6b02ca3027c3106a7dfd5d6b.tar.gz
libnitrokey-634f96e2d111820a6b02ca3027c3106a7dfd5d6b.tar.bz2
Use correct format letter
Signed-off-by: Szczepan Zalega <szczepan@nitrokey.com>
Diffstat (limited to 'misc.cc')
-rw-r--r--misc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc.cc b/misc.cc
index 0c71de2..24f8514 100644
--- a/misc.cc
+++ b/misc.cc
@@ -47,7 +47,7 @@ namespace misc {
for (const char *pend = p + size; p < pend;) {
if (print_header){
- snprintf(formatbuf, 128, "%04dx\t", static_cast<int> (p - pstart));
+ snprintf(formatbuf, 128, "%04x\t", static_cast<int> (p - pstart));
out << formatbuf;
}