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:
Anthony Minessale
2006-11-28 02:23:26 +00:00
parent 44649c70b4
commit d20870e121
3 changed files with 472 additions and 428 deletions

View File

@@ -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;