Merge pull request #2078 from acrisci/bug/detect-base16-conid
Bug: parse con_id base 16
This commit is contained in:
commit
008e32fe3e
|
@ -280,7 +280,7 @@ void match_parse_property(Match *match, const char *ctype, const char *cvalue) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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