mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +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:
1 parent
44649c70b4
commit
d20870e121
3 files changed
+472
-428
No files matched your search
@@ -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