mirror of
https://github.com/SciresM/hactool
synced 2024-11-26 22:10:24 +00:00
Merge pull request #39 from lioncash/conjunc
extkeys: Correct logical ANDs in get_kv()
This commit is contained in:
commit
373bdd04e6
1 changed files with 3 additions and 2 deletions
|
@ -94,10 +94,11 @@ static int get_kv(FILE *f, char **key, char **value) {
|
|||
}
|
||||
|
||||
if (*p != '_' &&
|
||||
(*p < '0' && *p > '9') &&
|
||||
(*p < 'a' && *p > 'z'))
|
||||
(*p < '0' || *p > '9') &&
|
||||
(*p < 'a' || *p > 'z')) {
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
/* Bail if the final ++p put us at the end of string */
|
||||
if (*p == '\0')
|
||||
|
|
Loading…
Reference in a new issue