sscanf'ing a size_t requires %zn

This commit is contained in:
Paul LeoNerd Evans 2011-05-28 11:53:00 +01:00
parent 650b4518b4
commit d3f441330b
1 changed files with 1 additions and 1 deletions

View File

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