[asterisk-commits] file: trunk r47623 - /trunk/apps/app_dial.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Nov 14 13:09:11 MST 2006
Author: file
Date: Tue Nov 14 14:09:10 2006
New Revision: 47623
URL: http://svn.digium.com/view/asterisk?view=rev&rev=47623
Log:
Make local copy of arguments to parse. (issue #8362 reported by homesick)
Modified:
trunk/apps/app_dial.c
Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?view=diff&rev=47623&r1=47622&r2=47623
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Tue Nov 14 14:09:10 2006
@@ -822,14 +822,15 @@
static int do_timelimit(struct ast_channel *chan, struct ast_bridge_config *config,
char *parse, unsigned int *calldurationlimit)
{
+ char *stringp = ast_strdupa(parse);
char *limit_str, *warning_str, *warnfreq_str;
const char *var;
int play_to_caller=0,play_to_callee=0;
int delta;
- limit_str = strsep(&warnfreq_str, ":");
- warning_str = strsep(&warnfreq_str, ":");
- warnfreq_str = parse;
+ limit_str = strsep(&stringp, ":");
+ warning_str = strsep(&stringp, ":");
+ warnfreq_str = strsep(&stringp, ":");
config->timelimit = atol(limit_str);
if (warning_str)
More information about the asterisk-commits
mailing list