aboutsummaryrefslogtreecommitdiff
path: root/termkey.c
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-05-28 11:53:00 +0100
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2011-05-28 11:53:00 +0100
commitd3f441330b9f1f71715cdfe2b181ee02552e47a6 (patch)
tree652ab74d778a0404beaeb7c054a3ba79ff51a7ff /termkey.c
parent650b4518b4c419e308c55b75d730c0362509eb78 (diff)
downloadtermo-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.c2
1 files changed, 1 insertions, 1 deletions
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;
}