diff options
author | Volker Lendecke <vl@samba.org> | 2010-09-18 07:37:04 -0700 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-09-18 07:44:23 -0700 |
commit | 7fddf9c89e8ead26e6367195441f49bce5a6b3db (patch) | |
tree | 1c95a0f7b9cf181c7d26ce3b61ae807746ff6558 /source3 | |
parent | 252e8c27eb07eea7ec45e76a9256692db1019af4 (diff) | |
download | samba-7fddf9c89e8ead26e6367195441f49bce5a6b3db.tar.gz samba-7fddf9c89e8ead26e6367195441f49bce5a6b3db.tar.bz2 samba-7fddf9c89e8ead26e6367195441f49bce5a6b3db.zip |
s3: Fix bug 7688, rpcclient command line completion crashing
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.
Diffstat (limited to 'source3')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index f54782972d..b34ef2cfee 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -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; |