From eec3f00ad38fd64ee4644727b0a9226952cf322c Mon Sep 17 00:00:00 2001 From: rizzo Date: Tue, 14 Nov 2006 15:55:18 +0000 Subject: 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 --- main/cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/cli.c') 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, -- cgit v1.2.3