From bd0e6665032265954a7a7cd0d861e10848c1a4db Mon Sep 17 00:00:00 2001 From: Jim McDonough Date: Mon, 28 Feb 2005 11:13:22 +0000 Subject: [PATCH] r5593: More reversal of accidental commit. (This used to be commit ec78c3f2a2e38abe96132475a22bfd52c850b001) --- source3/rpcclient/rpcclient.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 85d1d848bf6..acb65b7f7ce 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -100,7 +100,7 @@ static char **completion_fn(const char *text, int start, int end) static char* next_command (char** cmdstr) { - static char command[10000]; + static pstring command; char *p; if (!cmdstr || !(*cmdstr)) @@ -109,7 +109,7 @@ static char* next_command (char** cmdstr) p = strchr_m(*cmdstr, ';'); if (p) *p = '\0'; - strncpy(command, *cmdstr, sizeof(command)); + pstrcpy(command, *cmdstr); if (p) *cmdstr = p + 1; else -- 2.11.4.GIT