mirror of
git://git.sv.gnu.org/nano.git
synced 2025-02-20 15:24:17 +03:00
input: make sure that a string-bind return value is non-negative
A negative value would lead to misinterpretation by parse_kbinput(). This fixes https://savannah.gnu.org/bugs/?65832. Bug existed since version 8.0, commit 51c9f727.
This commit is contained in:
parent
05602e29cd
commit
dcbbbf8134
@ -381,7 +381,7 @@ int get_code_from_plantation(void)
|
||||
return PLANTED_A_COMMAND;
|
||||
} else {
|
||||
char *opening = strchr(plants_pointer, '{');
|
||||
char firstbyte = *plants_pointer;
|
||||
unsigned char firstbyte = *plants_pointer;
|
||||
int length;
|
||||
|
||||
if (opening) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user