diff options
author | Jim McDonough <jmcd@samba.org> | 2005-02-28 11:13:22 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 10:55:49 -0500 |
commit | bd0e6665032265954a7a7cd0d861e10848c1a4db (patch) | |
tree | 503b41638969cb00a00a0a6073da02c4e1f368e8 /source3/rpcclient | |
parent | de1c7564302d1b506694ce4262ea0e939c661acd (diff) | |
download | samba-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.c | 4 |
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 |