From 4215f33b40d6235c83727dab50196b3fbbb6ddf5 Mon Sep 17 00:00:00 2001 From: Michael Collins Date: Sat, 13 Dec 2008 04:57:27 +0000 Subject: [PATCH] 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 --- src/mod/applications/mod_commands/mod_commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_commands/mod_commands.c b/src/mod/applications/mod_commands/mod_commands.c index cb315a1409..677c5fa8da 100644 --- a/src/mod/applications/mod_commands/mod_commands.c +++ b/src/mod/applications/mod_commands/mod_commands.c @@ -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);