summaryrefslogtreecommitdiff
path: root/src/bintrim.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bintrim.c')
-rw-r--r--src/bintrim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bintrim.c b/src/bintrim.c
index 2a2018e..4cc1a79 100644
--- a/src/bintrim.c
+++ b/src/bintrim.c
@@ -2,6 +2,7 @@
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
+#include <util.h>
#include <err.h>
int
@@ -10,7 +11,7 @@ main(int argc, const char *argv[])
unsigned char trim = 0;
if (argc > 1)
- trim = strtoul(argv[1], NULL, 10);
+ trim = hexdecstrtoull(argv[1], NULL);
bool leading = true;
size_t rd, out_sz = 0, out_allocated = 0;