[Freeswitch-svn] [commit] r12360 - freeswitch/trunk/libs/esl/src
FreeSWITCH SVN
anthm at freeswitch.org
Mon Mar 2 14:19:36 PST 2009
Author: anthm
Date: Mon Mar 2 16:19:36 2009
New Revision: 12360
Log:
ESL-4
Modified:
freeswitch/trunk/libs/esl/src/esl_oop.cpp
Modified: freeswitch/trunk/libs/esl/src/esl_oop.cpp
==============================================================================
--- freeswitch/trunk/libs/esl/src/esl_oop.cpp (original)
+++ freeswitch/trunk/libs/esl/src/esl_oop.cpp Mon Mar 2 16:19:36 2009
@@ -69,7 +69,8 @@
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;
More information about the Freeswitch-svn
mailing list