summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-08 22:12:13 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-08 22:12:13 +0000
commitb0a69622509b450cb7724735c51d4b7173beac73 (patch)
tree14cf601fbb064edf982d6176956ccbab4a5cced4
parent64692f292fc610b90de97a85101203946ce65bfa (diff)
downloadsamba-b0a69622509b450cb7724735c51d4b7173beac73.tar.gz
fixed a bug in the readline support
-rw-r--r--source/client/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/client/client.c b/source/client/client.c
index 72463966a44..9d205b3508b 100644
--- a/source/client/client.c
+++ b/source/client/client.c
@@ -3654,12 +3654,13 @@ static BOOL process(char *base_directory)
#ifdef HAVE_LIBREADLINE
{
- pstring prompt;
+ pstring promptline;
/* Read input using GNU Readline */
- slprintf(prompt, sizeof(prompt) - 1, "smb: %s> ", CNV_LANG(cur_dir));
- if (!readline(prompt))
+ slprintf(promptline,
+ sizeof(promptline) - 1, "smb: %s> ", CNV_LANG(cur_dir));
+ if (!readline(promptline))
break;
/* Copy read line to samba buffer */