From 4f1a1663ff748d0c7fb3f7d600cdfdadf16ea887 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 30 Sep 2020 05:14:57 +0100 Subject: [PATCH] conf: remove bogus support for hex literals the INT regex macro supported a 0x prefix (used e.g. for port numbers), however following that, only digits were accepted, and not the full range of hexdigits. it's unlikely this was used, so remove it. note that the () expression is kept, so we don't have to adjust match number indices all over the place. --- src/conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conf.c b/src/conf.c index 91124bb..b17f6ee 100644 --- a/src/conf.c +++ b/src/conf.c @@ -52,7 +52,7 @@ #define WS "[[:space:]]+" #define STR "\"([^\"]+)\"" #define BOOL "(yes|on|no|off)" -#define INT "((0x)?[[:digit:]]+)" +#define INT "(()[[:digit:]]+)" #define ALNUM "([-a-z0-9._]+)" #define USERNAME "([^:]*)" #define PASSWORD "([^@]*)"