[Freeswitch-svn] [commit] r8852 - freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml

Freeswitch SVN anthm at freeswitch.org
Thu Jun 26 16:37:14 EDT 2008


Author: anthm
Date: Thu Jun 26 16:37:14 2008
New Revision: 8852

Modified:
   freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c

Log:
bigger buffer for regex match

Modified: freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c
==============================================================================
--- freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	(original)
+++ freeswitch/trunk/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c	Thu Jun 26 16:37:14 2008
@@ -147,7 +147,7 @@
 			}
 
 			if (field && strchr(expression, '(')) {
-				len = (uint32_t) (strlen(data) + strlen(field_data) + 10);
+				len = (uint32_t) (strlen(data) + strlen(field_data) + 10) * proceed;
 				if (!(substituted = malloc(len))) {
 					switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
 					proceed = 0;



More information about the Freeswitch-svn mailing list