aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-18 17:18:58 +0000
committermnicholson <mnicholson@f38db490-d61c-443f-a65b-d21fe96a405b>2010-10-18 17:18:58 +0000
commitd951057e73522815ae7691e277d90e90a2a9b67c (patch)
tree7c52e73dbcd882ea0b61e991070a3acbba9fef3d
parent7aaf91b5cadfcec9fbb305dc6fdef38418129ce2 (diff)
Merged revisions 292122 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r292122 | mnicholson | 2010-10-18 12:15:24 -0500 (Mon, 18 Oct 2010) | 5 lines Fix the cmgr parser. (closes issue 0018152) Reported by: menschentier ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@292124 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--addons/chan_mobile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/chan_mobile.c b/addons/chan_mobile.c
index 1bceed105..dbe20ee0a 100644
--- a/addons/chan_mobile.c
+++ b/addons/chan_mobile.c
@@ -2232,7 +2232,7 @@ static int hfp_parse_cmgr(struct hfp_pvt *hfp, char *buf, char **from_number, ch
*/
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] == ',') {