From 879049b9d0c9efad9542a001d762ac0359a274b8 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 26 Jun 2008 20:37:14 +0000 Subject: [PATCH] bigger buffer for regex match git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8852 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c index 652d400ddf..ccc8c938f8 100644 --- a/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c +++ b/src/mod/dialplans/mod_dialplan_xml/mod_dialplan_xml.c @@ -147,7 +147,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t * } 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;