From: Fabian Keil <fk@fabiankeil.de>
Date: Sat, 19 Nov 2022 12:04:18 +0000 (+0100)
Subject: parse_numeric_value(): Expect a base-ten number
X-Git-Tag: v_4_0_0~205
X-Git-Url: http://www.privoxy.org/gitweb/@default-cgi@/faq/%22https:/%22show-proxy-args/static/coding.html?a=commitdiff_plain;h=7c6fc789bef7991345714c055efda098c1493dde;p=privoxy.git

parse_numeric_value(): Expect a base-ten number
---

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,