diff options
author | Lars Henriksen <LarsHenriksen@get2net.dk> | 2018-05-23 20:49:08 +0200 |
---|---|---|
committer | Lukas Fleischer <lfleischer@calcurse.org> | 2018-05-24 16:23:23 +0200 |
commit | 65dd82a626f9414eec57c4d8c0e5302809d9a9e1 (patch) | |
tree | d77015ec265c00405f8780f16ca05d478026f83e /src | |
parent | fda8c1a7e20414788bc738dba25904031299cb4c (diff) | |
download | calcurse-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |