[asterisk-commits] mnicholson: branch 1.8 r292122 - /branches/1.8/addons/chan_mobile.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Oct 18 12:15:26 CDT 2010


Author: mnicholson
Date: Mon Oct 18 12:15:24 2010
New Revision: 292122

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=292122
Log:
Fix the cmgr parser.

(closes issue 0018152)
Reported by: menschentier

Modified:
    branches/1.8/addons/chan_mobile.c

Modified: branches/1.8/addons/chan_mobile.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/addons/chan_mobile.c?view=diff&rev=292122&r1=292121&r2=292122
==============================================================================
--- branches/1.8/addons/chan_mobile.c (original)
+++ branches/1.8/addons/chan_mobile.c Mon Oct 18 12:15:24 2010
@@ -2232,7 +2232,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 asterisk-commits mailing list