sscanf'ing a size_t requires %zn
This commit is contained in:
parent
650b4518b4
commit
d3f441330b
@ -1132,7 +1132,7 @@ char *termkey_strpkey(TermKey *tk, const char *str, TermKeyKey *key, TermKeyForm
|
||||
key->type = TERMKEY_TYPE_KEYSYM;
|
||||
str = endstr;
|
||||
}
|
||||
else if(sscanf(str, "F%d%n", &key->code.number, &nbytes) == 1) {
|
||||
else if(sscanf(str, "F%d%zn", &key->code.number, &nbytes) == 1) {
|
||||
key->type = TERMKEY_TYPE_FUNCTION;
|
||||
str += nbytes;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user