projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d3cf7
)
kconfig: truncate too long menu lines in menuconfig
author
Sam Ravnborg
<sam@mars.ravnborg.org>
Mon, 21 Nov 2005 21:59:32 +0000
(22:59 +0100)
committer
Sam Ravnborg
<sam@mars.ravnborg.org>
Mon, 21 Nov 2005 21:59:32 +0000
(22:59 +0100)
menu lines wrapped over too lines when too long - truncate them.
Also fixed a coding style issue
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
scripts/lxdialog/menubox.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/lxdialog/menubox.c
b/scripts/lxdialog/menubox.c
index d0bf32b340908b3ab3ea9ed30882bbcae0bb8c56..2d91880825ed0711ef30e15f91011dc3632e995f 100644
(file)
--- a/
scripts/lxdialog/menubox.c
+++ b/
scripts/lxdialog/menubox.c
@@
-70,7
+70,7
@@
static void do_print_item(WINDOW * win, const char *item, int choice,
int j;
char *menu_item = malloc(menu_width + 1);
- strncpy(menu_item, item, menu_width);
+ strncpy(menu_item, item, menu_width
- ITEM_IDENT
);
menu_item[menu_width] = 0;
j = first_alpha(menu_item, "YyNnMmHh");
@@
-184,8
+184,8
@@
int dialog_menu(const char *title, const char *prompt, int height, int width,
const char *const *items)
{
int i, j, x, y, box_x, box_y;
- int key = 0, button = 0, scroll = 0, choice = 0
, first_item =
-
0, max_choice;
+ int key = 0, button = 0, scroll = 0, choice = 0
;
+
int first_item =
0, max_choice;
WINDOW *dialog, *menu;
FILE *f;