ESL-4
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12360 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
8777ec780e
commit
2dbc6f85ca
|
@ -69,7 +69,8 @@ ESLevent *ESLconnection::api(const char *cmd, const char *arg)
|
|||
assert(cmd_buf);
|
||||
|
||||
snprintf(cmd_buf, len, "api %s %s", cmd, arg ? arg : "");
|
||||
*(cmd_buf + len) = '\0';
|
||||
*(cmd_buf + (len + 1)) = '\0';
|
||||
|
||||
|
||||
if (esl_send_recv(&handle, cmd_buf) == ESL_SUCCESS) {
|
||||
esl_event_t *event;
|
||||
|
|
Loading…
Reference in New Issue