From: Jo-Philipp Wich Date: Tue, 30 Apr 2013 18:03:14 +0000 (+0200) Subject: Allow hex notation in int type options X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0bbcb880e14ca9bd0ba59963a9d3ec1faadec6d7;p=oweals%2Ffirewall3.git Allow hex notation in int type options --- diff --git a/options.c b/options.c index f261e70..8315aaf 100644 --- a/options.c +++ b/options.c @@ -140,7 +140,7 @@ fw3_parse_bool(void *ptr, const char *val, bool is_list) bool fw3_parse_int(void *ptr, const char *val, bool is_list) { - int n = strtol(val, NULL, 10); + int n = strtol(val, NULL, 0); if (errno == ERANGE || errno == EINVAL) return false;