提交 4215f33b authored 作者: Michael Collins's avatar Michael Collins

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
上级 f9d0b83c
......@@ -2106,7 +2106,7 @@ SWITCH_STANDARD_API(sched_api_function)
}
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;
id = switch_scheduler_add_task(when, sch_api_callback, (char *) __SWITCH_FUNC__, group, 0, api_task, SSHF_FREE_ARG);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论