diff --git a/apps/app_dial.c b/apps/app_dial.c index d92b4d745a..3d45cf577c 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -449,7 +449,8 @@ static struct ast_channel *wait_for_answer(struct ast_channel *in, struct localu char tmpchan[256]; char *stuff; char *tech; - char *forward_context; + const char *forward_context; + ast_copy_string(tmpchan, o->chan->call_forward, sizeof(tmpchan)); if ((stuff = strchr(tmpchan, '/'))) { *stuff = '\0';