Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15890
b: refs/heads/master
c: e067e1f
h: refs/heads/master
v: v3
  • Loading branch information
Sam Ravnborg committed Nov 21, 2005
1 parent 85fc8ea commit 05081b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 59d3cf7a40dfdbb8e86758ade172831c19630050
refs/heads/master: e067e1f98d54d62fd598126f95e7684e5b63e67f
6 changes: 3 additions & 3 deletions trunk/scripts/lxdialog/menubox.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 05081b7

Please sign in to comment.