From 8043472753119238c13795b45199db2434f75bc5 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 (This used to be commit b0a69622509b450cb7724735c51d4b7173beac73) --- source3/client/client.c | 7 ++++--- 1 file 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 */ -- cgit