aboutsummaryrefslogtreecommitdiff
path: root/libbb/lineedit.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-07-15 18:27:47 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2009-07-15 18:27:47 +0200
commit7dd0ce49531b6340950b4a3eedbef1c958a475d9 (patch)
tree5f220482aeb6c63b761a62fb12af37c6441b6082 /libbb/lineedit.c
parent0ad438b12a97159c43c9bfc75a4ae4873ecf9bf9 (diff)
downloadbusybox-w32-7dd0ce49531b6340950b4a3eedbef1c958a475d9.tar.gz
busybox-w32-7dd0ce49531b6340950b4a3eedbef1c958a475d9.tar.bz2
busybox-w32-7dd0ce49531b6340950b4a3eedbef1c958a475d9.zip
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/lineedit.c')
-rw-r--r--libbb/lineedit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libbb/lineedit.c b/libbb/lineedit.c
index 8b7ff4f8e..5ebea70d6 100644
--- a/libbb/lineedit.c
+++ b/libbb/lineedit.c
@@ -233,11 +233,13 @@ static size_t load_string(const char *src, int maxsize)
233 safe_strncpy(command_ps, src, maxsize); 233 safe_strncpy(command_ps, src, maxsize);
234 return strlen(command_ps); 234 return strlen(command_ps);
235} 235}
236# if ENABLE_FEATURE_TAB_COMPLETION
236static void save_string(char *dst, int maxsize) 237static void save_string(char *dst, int maxsize)
237{ 238{
238 safe_strncpy(dst, command_ps, maxsize); 239 safe_strncpy(dst, command_ps, maxsize);
239} 240}
240#define BB_PUTCHAR(c) bb_putchar(c) 241# endif
242# define BB_PUTCHAR(c) bb_putchar(c)
241#endif 243#endif
242 244
243 245
@@ -683,6 +685,7 @@ static void exe_n_cwd_tab_completion(char *command, int type)
683#undef dirbuf 685#undef dirbuf
684} 686}
685 687
688//FIXME: HUH??? How about Unicode?
686#define QUOT (UCHAR_MAX+1) 689#define QUOT (UCHAR_MAX+1)
687 690
688#define collapse_pos(is, in) do { \ 691#define collapse_pos(is, in) do { \