]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Mon, 11 Aug 2008 20:43:19 +0000 (20:43 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Mon, 11 Aug 2008 20:43:19 +0000 (20:43 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9247 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c
src/switch_event.c

index 084657a8d1742dcbd57a24ca9c6191c02a2debec..872e568bf962d30b12bb14964a8d120fc5e27f31 100644 (file)
@@ -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);
index 451b53851a750ed6cb4c3036ec032b41f99b04d0..ce8c4da866ed345c5f892ab7da2d36e93092a693 100644 (file)
@@ -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);