From db4ae66fde06e534b96756ed3a0806a8e0e8485c Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 11 Aug 2008 20:43:19 +0000 Subject: [PATCH] doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9247 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_channel.c | 2 +- src/switch_event.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);