mirror of
https://github.com/linuxboot/heads.git
synced 2024-12-24 07:06:42 +00:00
newt(whiptail): fix code that was doing toupper of input
This commit is contained in:
parent
bd2a8eb96e
commit
498a78af57
20
patches/newt-0.52.20.patch
Normal file
20
patches/newt-0.52.20.patch
Normal file
@ -0,0 +1,20 @@
|
||||
--- ./listbox.c.orig 2023-10-11 15:26:20.365000000 -0400
|
||||
+++ ./listbox.c 2023-10-11 15:27:26.762000000 -0400
|
||||
@@ -652,7 +652,7 @@
|
||||
for(i = 0, item = li->boxItems; item != NULL &&
|
||||
i < li->currItem; i++, item = item->next);
|
||||
|
||||
- if (item && item->text && (toupper(*item->text) == toupper(ev.u.key))) {
|
||||
+ if (item && item->text && *item->text == ev.u.key) {
|
||||
item = item->next;
|
||||
i++;
|
||||
} else {
|
||||
@@ -660,7 +660,7 @@
|
||||
i = 0;
|
||||
}
|
||||
while (item && item->text &&
|
||||
- toupper(*item->text) != toupper(ev.u.key)) {
|
||||
+ *item->text != ev.u.key) {
|
||||
item = item->next;
|
||||
i++;
|
||||
}
|
Loading…
Reference in New Issue
Block a user