Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15885
b: refs/heads/master
c: a06104a
h: refs/heads/master
i:
  15883: ae25037
v: v3
  • Loading branch information
Sam Ravnborg committed Nov 19, 2005
1 parent 01a9149 commit 4525d1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 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: dec69da856653772d7ee7b2f98dc69da27274a22
refs/heads/master: a06104af7dcf2f5bafaf18f373c8b2554cbfe014
5 changes: 3 additions & 2 deletions trunk/scripts/lxdialog/menubox.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ static void print_item(WINDOW * win, const char *item, int choice,
int selected, int hotkey)
{
int j;
char menu_item[menu_width + 1];
char *menu_item = malloc(menu_width + 1);

strncpy(menu_item, item, menu_width);
menu_item[menu_width] = 0;
Expand Down Expand Up @@ -95,6 +95,7 @@ static void print_item(WINDOW * win, const char *item, int choice,
wmove(win, choice, item_x + 1);
wrefresh(win);
}
free(menu_item);
}

/*
Expand Down Expand Up @@ -221,7 +222,7 @@ int dialog_menu(const char *title, const char *prompt, int height, int width,

/*
* Find length of longest item in order to center menu.
* Set 'choice' to default item.
* Set 'choice' to default item.
*/
item_x = 0;
for (i = 0; i < item_no; i++) {
Expand Down
2 changes: 0 additions & 2 deletions trunk/scripts/lxdialog/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ bool use_colors = 1;

const char *backtitle = NULL;

const char *dialog_result;

/*
* Attribute values, default is for mono display
*/
Expand Down

0 comments on commit 4525d1f

Please sign in to comment.