[svn-commits] tilghman: branch 1.4 r52679 - /branches/1.4/pbx/pbx_config.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Jan 29 15:12:12 MST 2007


Author: tilghman
Date: Mon Jan 29 16:12:12 2007
New Revision: 52679

URL: http://svn.digium.com/view/asterisk?view=rev&rev=52679
Log:
Argument number correction

Modified:
    branches/1.4/pbx/pbx_config.c

Modified: branches/1.4/pbx/pbx_config.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/pbx/pbx_config.c?view=diff&rev=52679&r1=52678&r2=52679
==============================================================================
--- branches/1.4/pbx/pbx_config.c (original)
+++ branches/1.4/pbx/pbx_config.c Mon Jan 29 16:12:12 2007
@@ -1508,7 +1508,7 @@
 	/* check for arguments at first */
 	if (argc != 6 && argc != 7)
 		return RESULT_SHOWUSAGE;
-	if (strcmp(argv[3], "into"))
+	if (strcmp(argv[4], "into"))
 		return RESULT_SHOWUSAGE;
 	if (argc == 7) if (strcmp(argv[6], "replace")) return RESULT_SHOWUSAGE;
 
@@ -1553,7 +1553,7 @@
 
 	if (!app_data)
 		app_data="";
-	if (ast_add_extension(argv[5], argc == 6 ? 1 : 0, exten, iprior, NULL, cidmatch, app,
+	if (ast_add_extension(argv[5], argc == 7 ? 1 : 0, exten, iprior, NULL, cidmatch, app,
 		(void *)strdup(app_data), free, registrar)) {
 		switch (errno) {
 		case ENOMEM:



More information about the svn-commits mailing list