summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2020-09-30 05:14:57 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2020-09-30 05:14:57 +0100
commit4f1a1663ff748d0c7fb3f7d600cdfdadf16ea887 (patch)
tree449e313026f083e09f84c6160553ffd10e1a70b5
parent35c8edcf73056e20b0c055acb2f286cc37093ce3 (diff)
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.
-rw-r--r--src/conf.c2
1 files changed, 1 insertions, 1 deletions
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 "([^@]*)"