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>
This commit is contained in:
Lars Henriksen 2018-05-23 20:49:08 +02:00 committed by Lukas Fleischer
parent fda8c1a7e2
commit 65dd82a626

View File

@ -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;
}