[asterisk-commits] branch 1.2 - r7517 /branches/1.2/apps/app_chanspy.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Dec 17 11:19:33 CST 2005


Author: tilghman
Date: Sat Dec 17 11:19:32 2005
New Revision: 7517

URL: http://svn.digium.com/view/asterisk?rev=7517&view=rev
Log:
Bug 6009 - off by one error

Modified:
    branches/1.2/apps/app_chanspy.c

Modified: branches/1.2/apps/app_chanspy.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_chanspy.c?rev=7517&r1=7516&r2=7517&view=diff
==============================================================================
--- branches/1.2/apps/app_chanspy.c (original)
+++ branches/1.2/apps/app_chanspy.c Sat Dec 17 11:19:32 2005
@@ -482,7 +482,7 @@
 					}
 				}
 				
-				if (igrp && (!spec || ((strlen(spec) < strlen(peer->name) &&
+				if (igrp && (!spec || ((strlen(spec) <= strlen(peer->name) &&
 							!strncasecmp(peer->name, spec, strlen(spec)))))) {
 					if (peer && (!bronly || ast_bridged_channel(peer)) &&
 					    !ast_check_hangup(peer) && !ast_test_flag(peer, AST_FLAG_SPYING)) {



More information about the asterisk-commits mailing list