Don't force base 10 for parsing id.
This commit is contained in:
parent
af49a8cd0d
commit
68e3cb8ab7
|
@ -297,7 +297,7 @@ void match_parse_property(Match *match, const char *ctype, const char *cvalue) {
|
||||||
|
|
||||||
if (strcmp(ctype, "id") == 0) {
|
if (strcmp(ctype, "id") == 0) {
|
||||||
char *end;
|
char *end;
|
||||||
long parsed = strtol(cvalue, &end, 10);
|
long parsed = strtol(cvalue, &end, 0);
|
||||||
if (parsed == LONG_MIN ||
|
if (parsed == LONG_MIN ||
|
||||||
parsed == LONG_MAX ||
|
parsed == LONG_MAX ||
|
||||||
parsed < 0 ||
|
parsed < 0 ||
|
||||||
|
|
Loading…
Reference in New Issue