From 0bbcb880e14ca9bd0ba59963a9d3ec1faadec6d7 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 30 Apr 2013 20:03:14 +0200 Subject: [PATCH] Allow hex notation in int type options --- options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0