From: Luigi Rizzo Date: Tue, 14 Nov 2006 15:55:18 +0000 (+0000) Subject: apply previous fix to old-style cli entries as well. X-Git-Tag: 1.6.0-beta1~3^2~3988 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d38228d6e296779bff31c3c335b3336bdaf3cc1;p=thirdparty%2Fasterisk.git apply previous fix to old-style cli entries as well. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@47608 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/cli.c b/main/cli.c index 127aa19aba..35d3078294 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1662,7 +1662,7 @@ static char *__ast_cli_generator(const char *text, const char *word, int state, * Run the generator if one is available. In any case we are done. */ if (e->generator) - ret = e->generator(matchstr, word, argindex, state); + ret = e->generator(matchstr, word, argindex, state - matchnum); else if (e->command) { /* new style command */ /* prepare fake arguments for the generator. * argv[-1] is the cli entry we use,