From d3f441330b9f1f71715cdfe2b181ee02552e47a6 Mon Sep 17 00:00:00 2001 From: Paul LeoNerd Evans Date: Sat, 28 May 2011 11:53:00 +0100 Subject: sscanf'ing a size_t requires %zn --- termkey.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'termkey.c') diff --git a/termkey.c b/termkey.c index 59b1859..c4ee594 100644 --- a/termkey.c +++ b/termkey.c @@ -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; } -- cgit v1.2.3-70-g09d2