diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-14 20:09:10 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-14 20:09:10 +0000 |
commit | dcd1ec87b6524123448809bae80ffbb85cd1b279 (patch) | |
tree | e1a93e02fbb7afe6f4c0644509cad8fcd01eed33 /apps/app_dial.c | |
parent | d6e691ae01f18a237e0d008421e810ae2c17f5a9 (diff) |
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
Diffstat (limited to 'apps/app_dial.c')
-rw-r--r-- | apps/app_dial.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/app_dial.c b/apps/app_dial.c index 5e63dd46d..bb0354f8e 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -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) |