mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-06-01 03:05:50 +00:00
update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3458 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
57dd6da1fe
commit
dd1f941744
@ -1196,19 +1196,19 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
|||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nlen = sub_val ? strlen(sub_val) : 0;
|
if ((nlen = sub_val ? strlen(sub_val) : 0)) {
|
||||||
|
if (len + nlen >= olen) {
|
||||||
|
olen = (olen + len + nlen + block);
|
||||||
|
cpos = c - data;
|
||||||
|
data = realloc(data, olen);
|
||||||
|
c = data + cpos;
|
||||||
|
memset(c, 0, olen - cpos);
|
||||||
|
}
|
||||||
|
|
||||||
if (len + nlen >= olen) {
|
|
||||||
olen = (olen + len + nlen + block);
|
|
||||||
cpos = c - data;
|
|
||||||
data = realloc(data, olen);
|
|
||||||
c = data + cpos;
|
|
||||||
memset(c, 0, olen - cpos);
|
|
||||||
}
|
|
||||||
if (nlen) {
|
|
||||||
len += nlen;
|
len += nlen;
|
||||||
strcat(c, sub_val);
|
strcat(c, sub_val);
|
||||||
c += nlen;
|
c += nlen;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_safe_free(func_val);
|
switch_safe_free(func_val);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user