[svn-commits] mnicholson: branch 1.6.2 r1136 - /branches/1.6.2/channels/chan_mobile.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Mon Oct 18 12:11:48 CDT 2010


Author: mnicholson
Date: Mon Oct 18 12:11:43 2010
New Revision: 1136

URL: http://svnview.digium.com/svn/asterisk-addons?view=rev&rev=1136
Log:
Fix cmgr parser.

(closes issue #18152)
Reported by: menschentier


Modified:
    branches/1.6.2/channels/chan_mobile.c

Modified: branches/1.6.2/channels/chan_mobile.c
URL: http://svnview.digium.com/svn/asterisk-addons/branches/1.6.2/channels/chan_mobile.c?view=diff&rev=1136&r1=1135&r2=1136
==============================================================================
--- branches/1.6.2/channels/chan_mobile.c (original)
+++ branches/1.6.2/channels/chan_mobile.c Mon Oct 18 12:11:43 2010
@@ -2016,7 +2016,7 @@
 	 */
 	state = 0;
 	s = strlen(buf);
-	for (i = 0; i < s && s != 6; i++) {
+	for (i = 0; i < s && state != 6; i++) {
 		switch (state) {
 		case 0: /* search for start of the number section (,) */
 			if (buf[i] == ',') {




More information about the svn-commits mailing list