summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen2003-01-23 06:36:15 +0000
committerEric Andersen2003-01-23 06:36:15 +0000
commitee9441f8489509be7e96beb624c2d19feda7eb30 (patch)
tree531e977b0a500c56fba442e42033d4c34a21a2e8
parentbf77f61d694e18a1219b49d08db71f31bd5f7e11 (diff)
downloadbusybox-ee9441f8489509be7e96beb624c2d19feda7eb30.zip
busybox-ee9441f8489509be7e96beb624c2d19feda7eb30.tar.gz
Patch from Brett Hunt at micron.com to fixup potential segfaults
during 'make menuconfig'
-rw-r--r--scripts/config/menubox.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/config/menubox.c b/scripts/config/menubox.c
index b9cf4b6..5be3d56 100644
--- a/scripts/config/menubox.c
+++ b/scripts/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--;