From d8feba9faf8f135109e347b5bf5fa054df97a11a Mon Sep 17 00:00:00 2001 From: Kai Blin Date: Fri, 14 Dec 2007 10:46:35 +0100 Subject: r26452: Janitorial: Remove a pstring. (This used to be commit d1d95024788bc549f838c0393411fa98ddec04ec) --- source4/lib/smbreadline/smbreadline.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source4/lib/smbreadline/smbreadline.c b/source4/lib/smbreadline/smbreadline.c index 2a72750efb8..e5cc3522e97 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; -- cgit