summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2005-02-28 11:13:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:55:49 -0500
commitbd0e6665032265954a7a7cd0d861e10848c1a4db (patch)
tree503b41638969cb00a00a0a6073da02c4e1f368e8 /source3/rpcclient
parentde1c7564302d1b506694ce4262ea0e939c661acd (diff)
downloadsamba-bd0e6665032265954a7a7cd0d861e10848c1a4db.tar.gz
samba-bd0e6665032265954a7a7cd0d861e10848c1a4db.tar.bz2
samba-bd0e6665032265954a7a7cd0d861e10848c1a4db.zip
r5593: More reversal of accidental commit.
(This used to be commit ec78c3f2a2e38abe96132475a22bfd52c850b001)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/rpcclient.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c
index 85d1d848bf..acb65b7f7c 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