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:
parent
fda8c1a7e2
commit
65dd82a626
@ -731,7 +731,7 @@ void keys_fill_missing(void)
|
|||||||
"\"%s\" was already assigned!"),
|
"\"%s\" was already assigned!"),
|
||||||
keydef[i].label,
|
keydef[i].label,
|
||||||
key_ch);
|
key_ch);
|
||||||
p += strlen(key_ch) + 1;
|
p += strlen(key_ch);
|
||||||
} else {
|
} else {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user