Make local copy of arguments to parse. (issue #8362 reported by homesick)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@47623 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
parent
d6e691ae01
commit
dcd1ec87b6
1 changed files with 4 additions and 3 deletions
|
@ -822,14 +822,15 @@ static int valid_priv_reply(struct ast_flags *opts, int res)
|
|||
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)
|
||||
|
|
Reference in a new issue