19 May
2009
19 May
'09
3:38 p.m.
Author: anthm Date: Tue May 19 10:38:45 2009 New Revision: 13385 Log: fixx off-by-one in xml preprocessor Modified: freeswitch/trunk/src/switch_xml.c Modified: freeswitch/trunk/src/switch_xml.c ============================================================================== --- freeswitch/trunk/src/switch_xml.c (original) +++ freeswitch/trunk/src/switch_xml.c Tue May 19 10:38:45 2009 @@ -1147,7 +1147,7 @@ while (*rp && wp < ep) { if (*rp == '$' && *(rp + 1) == '$' && *(rp + 2) == '{') { - char *e = strchr(rp, '}'); + char *e = switch_find_end_paren(rp + 2, '{', '}'); if (e) { rp += 3; @@ -1160,6 +1160,7 @@ *wp++ = *p; } } + continue; } }
6378
Age (days ago)
6378
Last active (days ago)
0 comments
1 participants
participants (1)
-
FreeSWITCH SVN