projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
585b0c1
)
parse_numeric_value(): Expect a base-ten number
author
Fabian Keil
<fk@fabiankeil.de>
Sat, 19 Nov 2022 12:04:18 +0000
(13:04 +0100)
committer
Fabian Keil
<fk@fabiankeil.de>
Sat, 18 Feb 2023 09:05:55 +0000
(10:05 +0100)
loadcfg.c
patch
|
blob
|
history
diff --git
a/loadcfg.c
b/loadcfg.c
index
4efa2ea
..
188af09
100644
(file)
--- 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,
1
0);
if (*endptr != '\0')
{
log_error(LOG_LEVEL_FATAL,