[svn-commits] russell: branch 1.2 r46557 - /branches/1.2/res/res_agi.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Mon Oct 30 23:13:09 MST 2006


Author: russell
Date: Tue Oct 31 00:13:09 2006
New Revision: 46557

URL: http://svn.digium.com/view/asterisk?rev=46557&view=rev
Log:
fix some copy/paste bugs in the checking of arguments for the 
"control stream file" AGI command (issue #8255, mnicholson)

Modified:
    branches/1.2/res/res_agi.c

Modified: branches/1.2/res/res_agi.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/res/res_agi.c?rev=46557&r1=46556&r2=46557&view=diff
==============================================================================
--- branches/1.2/res/res_agi.c (original)
+++ branches/1.2/res/res_agi.c Tue Oct 31 00:13:09 2006
@@ -507,12 +507,12 @@
 	if ((argc > 5) && (sscanf(argv[5], "%d", &skipms) != 1))
 		return RESULT_SHOWUSAGE;
 
-	if (argc > 6 && !ast_strlen_zero(argv[8]))
+	if (argc > 6 && !ast_strlen_zero(argv[6]))
 		fwd = argv[6];
 	else
 		fwd = "#";
 
-	if (argc > 7 && !ast_strlen_zero(argv[8]))
+	if (argc > 7 && !ast_strlen_zero(argv[7]))
 		rev = argv[7];
 	else
 		rev = "*";



More information about the svn-commits mailing list