aboutsummaryrefslogtreecommitdiffstats
path: root/main/cli.c
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-14 15:55:18 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-14 15:55:18 +0000
commiteec3f00ad38fd64ee4644727b0a9226952cf322c (patch)
tree4513546890d006af5d8e5b76b50315101f6e9737 /main/cli.c
parent9372c9e40946dbc1842d879878ead9f682ad36de (diff)
apply previous fix to old-style cli entries as well.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47608 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/cli.c')
-rw-r--r--main/cli.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/cli.c b/main/cli.c
index 127aa19ab..35d307829 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,