From: Anthony Minessale Date: Mon, 11 Aug 2008 20:43:19 +0000 (+0000) Subject: doh X-Git-Tag: v1.0.2~1488 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db4ae66fde06e534b96756ed3a0806a8e0e8485c;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9247 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 084657a8d1..872e568bf9 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -1633,7 +1633,7 @@ SWITCH_DECLARE(char *) switch_channel_expand_variables(switch_channel_t *channel nv = 0; olen = strlen(in) + 1; indup = strdup(in); - endof_indup = end_of_p(indup); + endof_indup = end_of_p(indup) + 1; if ((data = malloc(olen))) { memset(data, 0, olen); diff --git a/src/switch_event.c b/src/switch_event.c index 451b53851a..ce8c4da866 100644 --- a/src/switch_event.c +++ b/src/switch_event.c @@ -1219,7 +1219,7 @@ SWITCH_DECLARE(char *) switch_event_expand_headers(switch_event_t *event, const nv = 0; olen = strlen(in) + 1; indup = strdup(in); - endof_indup = end_of_p(indup); + endof_indup = end_of_p(indup) + 1; if ((data = malloc(olen))) { memset(data, 0, olen);