diff options
author | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-05-28 11:53:00 +0100 |
---|---|---|
committer | Paul LeoNerd Evans <leonerd@leonerd.org.uk> | 2011-05-28 11:53:00 +0100 |
commit | d3f441330b9f1f71715cdfe2b181ee02552e47a6 (patch) | |
tree | 652ab74d778a0404beaeb7c054a3ba79ff51a7ff /termkey.c | |
parent | 650b4518b4c419e308c55b75d730c0362509eb78 (diff) | |
download | termo-d3f441330b9f1f71715cdfe2b181ee02552e47a6.tar.gz termo-d3f441330b9f1f71715cdfe2b181ee02552e47a6.tar.xz termo-d3f441330b9f1f71715cdfe2b181ee02552e47a6.zip |
sscanf'ing a size_t requires %zn
Diffstat (limited to 'termkey.c')
-rw-r--r-- | termkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |