From 7c6fc789bef7991345714c055efda098c1493dde Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Sat, 19 Nov 2022 13:04:18 +0100 Subject: [PATCH] parse_numeric_value(): Expect a base-ten number --- loadcfg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loadcfg.c b/loadcfg.c index 4efa2ea1..188af095 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -430,7 +430,7 @@ static int parse_numeric_value(const char *name, const char *value) log_error(LOG_LEVEL_FATAL, "Directive %s used without argument", name); } - number = (int)strtol(value, &endptr, 0); + number = (int)strtol(value, &endptr, 10); if (*endptr != '\0') { log_error(LOG_LEVEL_FATAL, -- 2.39.2