From 65dd82a626f9414eec57c4d8c0e5302809d9a9e1 Mon Sep 17 00:00:00 2001 From: Lars Henriksen Date: Wed, 23 May 2018 20:49:08 +0200 Subject: Fix end-of-string calculation In keys_fill_missing() a pointer is walked through a string of space-separated character names, but misses the string-terminating null character. Signed-off-by: Lukas Fleischer --- src/keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/keys.c b/src/keys.c index 4e608c7..8bafd66 100644 --- a/src/keys.c +++ b/src/keys.c @@ -731,7 +731,7 @@ void keys_fill_missing(void) "\"%s\" was already assigned!"), keydef[i].label, key_ch); - p += strlen(key_ch) + 1; + p += strlen(key_ch); } else { break; } -- cgit v1.2.3-70-g09d2