diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-01-23 06:36:15 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2003-01-23 06:36:15 +0000 |
commit | d953519358f08efb48de454c9ecad1fe0be8c923 (patch) | |
tree | 531e977b0a500c56fba442e42033d4c34a21a2e8 | |
parent | e065bc586f92b763e5abf859b1d7a3240ebcbfd1 (diff) | |
download | busybox-w32-d953519358f08efb48de454c9ecad1fe0be8c923.tar.gz busybox-w32-d953519358f08efb48de454c9ecad1fe0be8c923.tar.bz2 busybox-w32-d953519358f08efb48de454c9ecad1fe0be8c923.zip |
Patch from Brett Hunt at micron.com to fixup potential segfaults
during 'make menuconfig'
git-svn-id: svn://busybox.net/trunk/busybox@6433 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | scripts/config/menubox.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/config/menubox.c b/scripts/config/menubox.c index b9cf4b6a3..5be3d5611 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, | |||
311 | 311 | ||
312 | scroll--; | 312 | scroll--; |
313 | 313 | ||
314 | print_item (menu, items[scroll * 2]->name, 0, FALSE, | 314 | print_item (menu, items[scroll]->name, 0, FALSE, |
315 | (items[scroll * 2]->tag[0] != ':')); | 315 | (items[scroll]->tag[0] != ':')); |
316 | } else | 316 | } else |
317 | choice = MAX(choice - 1, 0); | 317 | choice = MAX(choice - 1, 0); |
318 | 318 | ||
@@ -343,8 +343,8 @@ dialog_menu (const char *title, const char *prompt, int height, int width, | |||
343 | if (scroll > 0) { | 343 | if (scroll > 0) { |
344 | wscrl (menu, -1); | 344 | wscrl (menu, -1); |
345 | scroll--; | 345 | scroll--; |
346 | print_item (menu, items[scroll * 2]->name, 0, FALSE, | 346 | print_item (menu, items[scroll]->name, 0, FALSE, |
347 | (items[scroll * 2]->tag[0] != ':')); | 347 | (items[scroll]->tag[0] != ':')); |
348 | } else { | 348 | } else { |
349 | if (choice > 0) | 349 | if (choice > 0) |
350 | choice--; | 350 | choice--; |