bigger buffer for regex match
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8852 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
0f16046103
commit
879049b9d0
|
@ -147,7 +147,7 @@ static int parse_exten(switch_core_session_t *session, switch_caller_profile_t *
|
||||||
}
|
}
|
||||||
|
|
||||||
if (field && strchr(expression, '(')) {
|
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))) {
|
if (!(substituted = malloc(len))) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CRIT, "memory error!\n");
|
||||||
proceed = 0;
|
proceed = 0;
|
||||||
|
|
Loading…
Reference in New Issue