[Privoxy-commits] [privoxy] 01/05: parse_numeric_value(): Expect a base-ten number
User Git
git at git.privoxy.org
Sat Feb 18 10:09:21 CET 2023
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 7c6fc789bef7991345714c055efda098c1493dde
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Nov 19 13:04:18 2022 +0100
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,
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list