[Freeswitch-svn] [commit] r13385 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Tue May 19 08:38:45 PDT 2009


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;
 			}
 		}
 



More information about the Freeswitch-svn mailing list