git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64692f2
)
fixed a bug in the readline support
author
Andrew Tridgell
<tridge@samba.org>
Thu, 8 Oct 1998 22:12:13 +0000
(22:12 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Thu, 8 Oct 1998 22:12:13 +0000
(22:12 +0000)
source/client/client.c
patch
|
blob
|
history
diff --git
a/source/client/client.c
b/source/client/client.c
index 72463966a44581916e41cef6e77c4060d0c9e0b5..9d205b3508bab0cf3d42fa217b57f28fa8d3bb61 100644
(file)
--- 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 prompt
line
;
/* 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 */