[Freeswitch-trunk] [commit] r12407 - freeswitch/trunk/libs/esl/src

FreeSWITCH SVN brian at freeswitch.org
Wed Mar 4 07:26:39 PST 2009


Author: brian
Date: Wed Mar  4 09:26:39 2009
New Revision: 12407

Log:
missed a spot

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	Wed Mar  4 09:26:39 2009
@@ -98,7 +98,7 @@
 	assert(cmd_buf);
 
 	snprintf(cmd_buf, len, "bgapi %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-trunk mailing list