diff options
| author | Quentin Carbonneaux | 2023-03-01 10:35:30 +0100 |
|---|---|---|
| committer | Quentin Carbonneaux | 2023-03-01 10:35:30 +0100 |
| commit | ac981cbd173b1ff0d922eb937de33f37198cd9ce (patch) | |
| tree | 0ba578bd20b5c5d6370ba0349da4b33eee7b0350 | |
| parent | 19aac0c6fc766ecd0db64adaa26153966350e24b (diff) | |
oops, nul terminate hexs' output...
| -rw-r--r-- | sdar/util.c | 2 |
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; } |
