aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Henriksen <LarsHenriksen@get2net.dk>2018-05-23 20:49:08 +0200
committerLukas Fleischer <lfleischer@calcurse.org>2018-05-24 16:23:23 +0200
commit65dd82a626f9414eec57c4d8c0e5302809d9a9e1 (patch)
treed77015ec265c00405f8780f16ca05d478026f83e /src
parentfda8c1a7e20414788bc738dba25904031299cb4c (diff)
downloadcalcurse-65dd82a626f9414eec57c4d8c0e5302809d9a9e1.tar.gz
calcurse-65dd82a626f9414eec57c4d8c0e5302809d9a9e1.zip
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 <lfleischer@calcurse.org>
Diffstat (limited to 'src')
-rw-r--r--src/keys.c2
1 files changed, 1 insertions, 1 deletions
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;
}