From: Michael Collins Date: Sat, 13 Dec 2008 04:57:27 +0000 (+0000) Subject: api command sent through sched_api was getting the last char lopped off X-Git-Tag: v1.0.2~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4215f33b40d6235c83727dab50196b3fbbb6ddf5;p=thirdparty%2Ffreeswitch.git 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 --- 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);