diff options
author | Mark Spencer <markster@digium.com> | 2002-11-11 16:37:01 +0000 |
---|---|---|
committer | Mark Spencer <markster@digium.com> | 2002-11-11 16:37:01 +0000 |
commit | 4fc8108a2b17ea4066fb5ecfcab9d439090b9614 (patch) | |
tree | 5c496330ffcbad803e83d7107e92aa3e3772de66 /apps/app_url.c | |
parent | c6df9fae0e3ba0472af0b026e3ac93231daa0493 (diff) |
Version 0.3.0 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@546 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps/app_url.c')
-rwxr-xr-x | apps/app_url.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/app_url.c b/apps/app_url.c index 53a589481..6cae9eb9b 100755 --- a/apps/app_url.c +++ b/apps/app_url.c @@ -52,13 +52,15 @@ static int sendurl_exec(struct ast_channel *chan, void *data) char *options; int option_wait=0; struct ast_frame *f; + char *stringp=NULL; if (!data || !strlen((char *)data)) { ast_log(LOG_WARNING, "SendURL requires an argument (URL)\n"); return -1; } strncpy(tmp, (char *)data, sizeof(tmp)-1); - strtok(tmp, "|"); - options = strtok(NULL, "|"); + stringp=tmp; + strsep(&stringp, "|"); + options = strsep(&stringp, "|"); if (options && !strcasecmp(options, "wait")) option_wait = 1; LOCAL_USER_ADD(u); |