s3: Fix bug 7688, rpcclient command line completion crashing
authorVolker Lendecke <vl@samba.org>
Sat, 18 Sep 2010 14:37:04 +0000 (07:37 -0700)
committerVolker Lendecke <vl@samba.org>
Sat, 18 Sep 2010 14:44:23 +0000 (07:44 -0700)
We've grown more than 100 rpcclient commands by now, so this would overwrite
the array of 100 completions. There's nicer ways to fix this problem, but 1000
rpcclient commands should be at least a bit away.

source3/rpcclient/rpcclient.c

index f54782972da7fad45bcac6d3c1274877f6565cc1..b34ef2cfee698effaa28503edb053e9d2c58f7cb 100644 (file)
@@ -54,7 +54,7 @@ handle completion of commands for readline
 ****************************************************************************/
 static char **completion_fn(const char *text, int start, int end)
 {
-#define MAX_COMPLETIONS 100
+#define MAX_COMPLETIONS 1000
        char **matches;
        int i, count=0;
        struct cmd_list *commands = cmd_list;