From 68e3cb8ab79267e8ee0faf0a4e2d60e9dde0e1b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ingo=20B=C3=BCrk?= Date: Thu, 17 Dec 2015 09:43:34 -0500 Subject: [PATCH] Don't force base 10 for parsing id. --- src/match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/match.c b/src/match.c index bbb239ac..ca64df69 100644 --- a/src/match.c +++ b/src/match.c @@ -297,7 +297,7 @@ void match_parse_property(Match *match, const char *ctype, const char *cvalue) { if (strcmp(ctype, "id") == 0) { char *end; - long parsed = strtol(cvalue, &end, 10); + long parsed = strtol(cvalue, &end, 0); if (parsed == LONG_MIN || parsed == LONG_MAX || parsed < 0 || -- 2.39.2