From 015849995f7f99f344ece11748a6e7b36ce07dd7 Mon Sep 17 00:00:00 2001 From: Eric Leblond Date: Thu, 12 Jun 2008 11:10:58 +0200 Subject: Fix hexadecimal parsing in config file The config file parsing was not able to parse integer given in hex notation. This patch modify the parsing of configfile to be able to use different integers notation. Signed-off-by: Eric Leblond --- src/conffile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3