r5593: More reversal of accidental commit.
authorJim McDonough <jmcd@samba.org>
Mon, 28 Feb 2005 11:13:22 +0000 (11:13 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:55:49 +0000 (10:55 -0500)
source/rpcclient/rpcclient.c

index 85d1d848bf6c70cefbc5ee97dfc798182ba3d83b..acb65b7f7ceb8e1afd98c236f8c4490c8b89fdd3 100644 (file)
@@ -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