aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++) {