[asterisk-commits] tilghman: branch 1.2 r43248 -
/branches/1.2/apps/app_voicemail.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Sep 19 05:28:55 MST 2006
Author: tilghman
Date: Tue Sep 19 07:28:55 2006
New Revision: 43248
URL: http://svn.digium.com/view/asterisk?rev=43248&view=rev
Log:
cid is passed to a destructive function; thus a copy is needed (issue 7961)
Modified:
branches/1.2/apps/app_voicemail.c
Modified: branches/1.2/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_voicemail.c?rev=43248&r1=43247&r2=43248&view=diff
==============================================================================
--- branches/1.2/apps/app_voicemail.c (original)
+++ branches/1.2/apps/app_voicemail.c Tue Sep 19 07:28:55 2006
@@ -3841,7 +3841,7 @@
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");
@@ -6462,7 +6462,7 @@
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 */
More information about the asterisk-commits
mailing list