From b0a69622509b450cb7724735c51d4b7173beac73 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Oct 1998 22:12:13 +0000 Subject: fixed a bug in the readline support --- source/client/client.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'source/client') 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 */ -- cgit