summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/client/client.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/client/client.c b/source3/client/client.c
index 72463966a4..9d205b3508 100644
--- a/source3/client/client.c
+++ b/source3/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 */