summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2023-03-01 10:35:30 +0100
committerQuentin Carbonneaux2023-03-01 10:35:30 +0100
commitac981cbd173b1ff0d922eb937de33f37198cd9ce (patch)
tree0ba578bd20b5c5d6370ba0349da4b33eee7b0350
parent19aac0c6fc766ecd0db64adaa26153966350e24b (diff)
oops, nul terminate hexs' output...
-rw-r--r--sdar/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sdar/util.c b/sdar/util.c
index ba93848..7bb52b4 100644
--- a/sdar/util.c
+++ b/sdar/util.c
@@ -38,7 +38,7 @@ hexs(uchar *d, int n)
assert(n <= 32);
for (p = buf; n-- > 0; p += 2, d++)
- snprintf(p, 2, "%02x", (uint)*d);
+ snprintf(p, 3, "%02x", (uint)*d);
return buf;
}