summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-23 06:36:15 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-23 06:36:15 +0000
commitde69a107e58e19b040099f1d50bcead5634b4842 (patch)
treefc2111c68609b1d88b3f040f53f6320953dcc421
parentc5a9df36d2317c036858086715459dc4f4a5472f (diff)
Patch from Brett Hunt at micron.com to fixup potential segfaults
during 'make menuconfig'
-rw-r--r--extra/config/menubox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra/config/menubox.c b/extra/config/menubox.c
index b9cf4b6a3..5be3d5611 100644
--- a/extra/config/menubox.c
+++ b/extra/config/menubox.c
@@ -311,8 +311,8 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
scroll--;
- print_item (menu, items[scroll * 2]->name, 0, FALSE,
- (items[scroll * 2]->tag[0] != ':'));
+ print_item (menu, items[scroll]->name, 0, FALSE,
+ (items[scroll]->tag[0] != ':'));
} else
choice = MAX(choice - 1, 0);
@@ -343,8 +343,8 @@ dialog_menu (const char *title, const char *prompt, int height, int width,
if (scroll > 0) {
wscrl (menu, -1);
scroll--;
- print_item (menu, items[scroll * 2]->name, 0, FALSE,
- (items[scroll * 2]->tag[0] != ':'));
+ print_item (menu, items[scroll]->name, 0, FALSE,
+ (items[scroll]->tag[0] != ':'));
} else {
if (choice > 0)
choice--;