summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2023-10-06 02:36:59 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2023-10-06 04:59:47 +0200
commitc5c3a22bccda5454775b48ad318a7fd4bf197f86 (patch)
treeef97b0adc90255c61c2387bdce4c45112291b780 /lib
parente83beb70bd14923cece5b35411606ade6fb8fbee (diff)
Conf: Bytestrings with hex: should use the same general format as ones without.
Either hex:01234567, or hex:01:23:45:67. No confusing formats like hex:0123:4567:ab:cdef, which looks like there is an implicit zero byte.
Diffstat (limited to 'lib')
-rw-r--r--lib/strtoul.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strtoul.c b/lib/strtoul.c
index e0c0142f..420931a4 100644
--- a/lib/strtoul.c
+++ b/lib/strtoul.c
@@ -87,7 +87,7 @@ bstrhextobin(const char *s, byte *b)
int v = fromxdigit(*s);
if (v < 0)
{
- if (strchr(" :-", *s) && !hi)
+ if (strchr(" -.:", *s) && !hi)
continue;
else
return -1;