=== modified file 'termkey.c' --- termkey.c 2011-05-28 10:53:00 +0000 +++ termkey.c 2011-05-24 17:17:15 +0000 @@ -1132,7 +1132,7 @@ key->type = TERMKEY_TYPE_KEYSYM; str = endstr; } - else if(sscanf(str, "F%d%zn", &key->code.number, &nbytes) == 1) { + else if(sscanf(str, "F%d%n", &key->code.number, &nbytes) == 1) { key->type = TERMKEY_TYPE_FUNCTION; str += nbytes; }