nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit dcbbbf813453fc7f587cff14d3ed1e3336f549a5
parent 05602e29cd3131287b259f1d2b50d994aee45848
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Mon,  3 Jun 2024 15:24:22 +0200

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.

Diffstat:
Msrc/winio.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/winio.c b/src/winio.c @@ -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) {