[svn-commits] rizzo: trunk r47608 - /trunk/main/cli.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Nov 14 08:55:19 MST 2006


Author: rizzo
Date: Tue Nov 14 09:55:18 2006
New Revision: 47608

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47608
Log:
apply previous fix to old-style cli entries as well.


Modified:
    trunk/main/cli.c

Modified: trunk/main/cli.c
URL: http://svn.digium.com/view/asterisk/trunk/main/cli.c?view=diff&rev=47608&r1=47607&r2=47608
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Tue Nov 14 09:55:18 2006
@@ -1662,7 +1662,7 @@
 			 * 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,



More information about the svn-commits mailing list