diff options
author | Eric Leblond <eric@inl.fr> | 2008-06-12 11:10:58 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-06-12 11:10:58 +0200 |
commit | 015849995f7f99f344ece11748a6e7b36ce07dd7 (patch) | |
tree | e92c01080692e2c9f6b6ce9af7be5ea4f92f1a17 /src/conffile.c | |
parent | da35b9e971b852338be7bbb00c639a381b1a5a76 (diff) |
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 <eric@inl.fr>
Diffstat (limited to 'src/conffile.c')
-rw-r--r-- | src/conffile.c | 2 |
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); |