summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/conffile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conffile.c b/src/conffile.c
index b74da68..72afb8e 100644
--- a/src/conffile.c
+++ b/src/conffile.c
@@ -192,7 +192,7 @@ int config_parse_file(const char *section, struct config_keyset *kset)
}
break;
case CONFIG_TYPE_INT:
- ce->u.value = atoi(args);
+ ce->u.value = strtoul(args, NULL, 0);
break;
case CONFIG_TYPE_CALLBACK:
(ce->u.parser)(args);