[BusyBox-cvs] busybox/scripts/config menubox.c,1.1,1.2

Erik Andersen andersen at codepoet.org
Thu Jan 23 06:35:21 UTC 2003


Update of /var/cvs/busybox/scripts/config
In directory winder:/tmp/cvs-serv31825/scripts/config

Modified Files:
	menubox.c 
Log Message:
Patch from Brett Hunt at micron.com to fixup potential segfaults
during 'make menuconfig'


Index: menubox.c
===================================================================
RCS file: /var/cvs/busybox/scripts/config/menubox.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- menubox.c	5 Dec 2002 08:41:07 -0000	1.1
+++ menubox.c	23 Jan 2003 06:35:17 -0000	1.2
@@ -311,8 +311,8 @@
 
                     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 @@
                     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--;




More information about the busybox-cvs mailing list