mirror of
https://github.com/sheumann/hush.git
synced 2024-12-26 10:32:02 +00:00
Patch from Brett Hunt at micron.com to fixup potential segfaults
during 'make menuconfig'
This commit is contained in:
parent
bf77f61d69
commit
ee9441f848
@ -311,8 +311,8 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
|
|||||||
|
|
||||||
scroll--;
|
scroll--;
|
||||||
|
|
||||||
print_item (menu, items[scroll * 2]->name, 0, FALSE,
|
print_item (menu, items[scroll]->name, 0, FALSE,
|
||||||
(items[scroll * 2]->tag[0] != ':'));
|
(items[scroll]->tag[0] != ':'));
|
||||||
} else
|
} else
|
||||||
choice = MAX(choice - 1, 0);
|
choice = MAX(choice - 1, 0);
|
||||||
|
|
||||||
@ -343,8 +343,8 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
|
|||||||
if (scroll > 0) {
|
if (scroll > 0) {
|
||||||
wscrl (menu, -1);
|
wscrl (menu, -1);
|
||||||
scroll--;
|
scroll--;
|
||||||
print_item (menu, items[scroll * 2]->name, 0, FALSE,
|
print_item (menu, items[scroll]->name, 0, FALSE,
|
||||||
(items[scroll * 2]->tag[0] != ':'));
|
(items[scroll]->tag[0] != ':'));
|
||||||
} else {
|
} else {
|
||||||
if (choice > 0)
|
if (choice > 0)
|
||||||
choice--;
|
choice--;
|
||||||
|
Loading…
Reference in New Issue
Block a user