summaryrefslogtreecommitdiffstats
path: root/source/rpcclient
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2005-02-28 11:13:22 +0000
committerJim McDonough <jmcd@samba.org>2005-02-28 11:13:22 +0000
commit0787761d8e9ff82c84720b178435b4962f65b6a1 (patch)
tree6665f873b60c50cfe24b29a49efd55fffb47a051 /source/rpcclient
parent27e08bfce0302b5dbd8a3467dc8ddb67e7d6530c (diff)
downloadsamba-0787761d8e9ff82c84720b178435b4962f65b6a1.tar.gz
samba-0787761d8e9ff82c84720b178435b4962f65b6a1.tar.xz
samba-0787761d8e9ff82c84720b178435b4962f65b6a1.zip
r5593: More reversal of accidental commit.
Diffstat (limited to 'source/rpcclient')
-rw-r--r--source/rpcclient/rpcclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/rpcclient/rpcclient.c b/source/rpcclient/rpcclient.c
index 85d1d848bf6..acb65b7f7ce 100644
--- a/source/rpcclient/rpcclient.c
+++ b/source/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