summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/keys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/keys.c b/src/keys.c
index 578c973..a06858d 100644
--- a/src/keys.c
+++ b/src/keys.c
@@ -720,6 +720,7 @@ void keys_fill_missing(void)
char *p, tmpbuf[BUFSIZ];
strncpy(tmpbuf, keydef[i].binding, BUFSIZ);
+ tmpbuf[BUFSIZ - 1] = '\0';
p = tmpbuf;
for (;;) {
char key_ch[BUFSIZ];