api command sent through sched_api was getting the last char lopped off
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10748 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
f9d0b83cf9
commit
4215f33b40
|
@ -2106,7 +2106,7 @@ SWITCH_STANDARD_API(sched_api_function)
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_zmalloc(api_task, sizeof(*api_task) + strlen(dcmd) + 1);
|
switch_zmalloc(api_task, sizeof(*api_task) + strlen(dcmd) + 1);
|
||||||
switch_copy_string(api_task->cmd, dcmd, strlen(dcmd));
|
switch_copy_string(api_task->cmd, dcmd, strlen(dcmd) + 1);
|
||||||
api_task->recur = recur;
|
api_task->recur = recur;
|
||||||
|
|
||||||
id = switch_scheduler_add_task(when, sch_api_callback, (char *) __SWITCH_FUNC__, group, 0, api_task, SSHF_FREE_ARG);
|
id = switch_scheduler_add_task(when, sch_api_callback, (char *) __SWITCH_FUNC__, group, 0, api_task, SSHF_FREE_ARG);
|
||||||
|
|
Loading…
Reference in New Issue