From c5c3a22bccda5454775b48ad318a7fd4bf197f86 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Fri, 6 Oct 2023 02:36:59 +0200 Subject: 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. --- lib/strtoul.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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; -- cgit v1.2.3