mirror of
https://github.com/SciresM/hactool
synced 2024-11-23 04:23:13 +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,9 +94,10 @@ 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 */
|
||||
|
|
Loading…
Reference in a new issue