diff options
Diffstat (limited to 'source4/lib')
-rw-r--r-- | source4/lib/smbreadline/smbreadline.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/lib/smbreadline/smbreadline.c b/source4/lib/smbreadline/smbreadline.c index 2a72750efb..e5cc3522e9 100644 --- a/source4/lib/smbreadline/smbreadline.c +++ b/source4/lib/smbreadline/smbreadline.c @@ -19,7 +19,6 @@ */ #include "includes.h" -#include "pstring.h" #include "system/filesys.h" #include "system/select.h" #include "system/readline.h" @@ -78,7 +77,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void) char **(completion_fn)(const char *text, int start, int end)) { fd_set fds; - static pstring line; + static char line[1024]; struct timeval timeout; int fd = STDIN_FILENO; char *ret; @@ -91,7 +90,7 @@ static char *smb_readline_replacement(const char *prompt, void (*callback)(void) FD_ZERO(&fds); FD_SET(fd,&fds); - + if (sys_select_intr(fd+1,&fds,NULL,NULL,&timeout) == 1) { ret = x_fgets(line, sizeof(line), x_stdin); return ret; |