diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-10-08 22:12:13 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-10-08 22:12:13 +0000 |
commit | 8043472753119238c13795b45199db2434f75bc5 (patch) | |
tree | b8ba653b7750a762fa813fac432b75fb0228119d /source3/client | |
parent | eaac4014f08f62ba3e64cc179650fe0fe93ea8ba (diff) | |
download | samba-8043472753119238c13795b45199db2434f75bc5.tar.gz samba-8043472753119238c13795b45199db2434f75bc5.tar.bz2 samba-8043472753119238c13795b45199db2434f75bc5.zip |
fixed a bug in the readline support
(This used to be commit b0a69622509b450cb7724735c51d4b7173beac73)
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/client.c | 7 |
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 */ |