Merge pull request #2121 from Airblader/bug-base-10

Don't force base 10 for parsing id.
This commit is contained in:
Michael Stapelberg 2015-12-17 22:10:06 +01:00
commit d240d02e61
1 changed files with 1 additions and 1 deletions

View File

@ -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 ||