=== modified file 'termkey.c' --- termkey.c 2012-01-20 17:01:38 +0000 +++ termkey.c 2012-01-20 17:00:09 +0000 @@ -1254,16 +1254,15 @@ } size_t nbytes; - ssize_t snbytes; char *endstr; if((endstr = termkey_lookup_keyname(tk, str, &key->code.sym))) { key->type = TERMKEY_TYPE_KEYSYM; str = endstr; } - else if(sscanf(str, "F%d%zn", &key->code.number, &snbytes) == 1) { + else if(sscanf(str, "F%d%zn", &key->code.number, &nbytes) == 1) { key->type = TERMKEY_TYPE_FUNCTION; - str += snbytes; + str += nbytes; } // Unicode must be last else if(parse_utf8((unsigned char *)str, strlen(str), &key->code.codepoint, &nbytes) == TERMKEY_RES_KEY) {