aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-19 12:30:17 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2006-09-19 12:30:17 +0000
commit50f9b9ec83d154681157c7740c5473c4eb9886a4 (patch)
tree3e6e8cf3b7f2db9ab1b9aca80fe883fb3f747f2e
parent4560e87bd10254d2d695d65a18f35db6996fe985 (diff)
Merged revisions 43248 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r43248 | tilghman | 2006-09-19 07:28:55 -0500 (Tue, 19 Sep 2006) | 2 lines cid is passed to a destructive function; thus a copy is needed (issue 7961) ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43249 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--apps/app_voicemail.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c
index f0c9d985f..4e605e917 100644
--- a/apps/app_voicemail.c
+++ b/apps/app_voicemail.c
@@ -4477,7 +4477,7 @@ static int play_message(struct ast_channel *chan, struct ast_vm_user *vmu, struc
return 0;
}
- cid = ast_variable_retrieve(msg_cfg, "message", "callerid");
+ cid = ast_strdupa(ast_variable_retrieve(msg_cfg, "message", "callerid"));
duration = ast_variable_retrieve(msg_cfg, "message", "duration");
category = ast_variable_retrieve(msg_cfg, "message", "category");
@@ -7540,7 +7540,7 @@ static int advanced_options(struct ast_channel *chan, struct ast_vm_user *vmu, s
return 0;
}
- cid = ast_variable_retrieve(msg_cfg, "message", "callerid");
+ cid = ast_strdupa(ast_variable_retrieve(msg_cfg, "message", "callerid"));
context = ast_variable_retrieve(msg_cfg, "message", "context");
if (!strncasecmp("macro",context,5)) /* Macro names in contexts are useless for our needs */