mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
fix obscure bs, remove CR from dptools, add info app
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3463 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -1198,11 +1198,14 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel
|
||||
}
|
||||
if ((nlen = sub_val ? strlen(sub_val) : 0)) {
|
||||
if (len + nlen >= olen) {
|
||||
olen = (olen + len + nlen + block);
|
||||
char *dp;
|
||||
olen += (len + nlen + block);
|
||||
cpos = c - data;
|
||||
data = realloc(data, olen);
|
||||
c = data + cpos;
|
||||
memset(c, 0, olen - cpos);
|
||||
if ((dp = realloc(data, olen))) {
|
||||
data = dp;
|
||||
c = data + cpos;
|
||||
memset(c, 0, olen - cpos);
|
||||
}
|
||||
}
|
||||
|
||||
len += nlen;
|
||||
|
Reference in New Issue
Block a user