oops, mistake in parsing command-arguments. repeated calls to
authorLuke Leighton <lkcl@samba.org>
Tue, 16 Nov 1999 17:15:45 +0000 (17:15 +0000)
committerLuke Leighton <lkcl@samba.org>
Tue, 16 Nov 1999 17:15:45 +0000 (17:15 +0000)
next_token() should not have line to parse as first arg.  oops.

source/rpcclient/rpcclient.c

index f359045baeb53cc32c2163174995469d04b5bbb0..b1637a3249fbdcc6d1e454dbb87d1655420ad550 100644 (file)
@@ -1264,7 +1264,7 @@ static char **completion_fn(char *text, int start, int end)
     for (i = 0; i <= end; i++) {
        if ((rl_line_buffer[i] != ' ') && (lastch == ' '))
        {
-               if (next_token(&ptr, tmp, NULL, sizeof(tmp)))
+               if (next_token(NULL, tmp, NULL, sizeof(tmp)))
                {
                        add_chars_to_array(&cmd_argc, &cmd_argv, tmp);
                }