summaryrefslogtreecommitdiff
path: root/package/config/lxdialog
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-12 07:05:52 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2007-09-12 07:05:52 +0000
commit9952cfa5c429dc2ee3ba4b24a7974c91bf9a3d29 (patch)
tree33c2e9bb5961c2a517208b05c7f4b22c14b82038 /package/config/lxdialog
parent0c1a521ce5da7372aaeb9a58ca55b43ba94611b8 (diff)
- revert r19825. Fix this in the kernel instead and read README.buildroot2
Diffstat (limited to 'package/config/lxdialog')
-rw-r--r--package/config/lxdialog/inputbox.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/config/lxdialog/inputbox.c b/package/config/lxdialog/inputbox.c
index fe523b8ce..05e72066b 100644
--- a/package/config/lxdialog/inputbox.c
+++ b/package/config/lxdialog/inputbox.c
@@ -52,7 +52,7 @@ int dialog_inputbox(const char *title, const char *prompt, int height, int width
if (!init)
instr[0] = '\0';
else
- strcpy((char *)instr, init);
+ strcpy(instr, init);
do_resize:
if (getmaxy(stdscr) <= (height - 2))
@@ -105,7 +105,7 @@ do_resize:
for (i = 0; i < box_width - 1; i++)
waddch(dialog, instr[scroll + i]);
} else {
- waddstr(dialog, (char *)instr);
+ waddstr(dialog, instr);
}
wmove(dialog, box_y, box_x + input_x);
@@ -136,7 +136,7 @@ do_resize:
waddch(dialog,
instr[scroll + input_x + i] ?
instr[scroll + input_x + i] : ' ');
- input_x = strlen((char *)instr) - scroll;
+ input_x = strlen(instr) - scroll;
} else
input_x--;
instr[scroll + input_x] = '\0';