[Freeswitch-trunk] [commit] r12460 - in freeswitch/trunk/libs/esl: perl src
FreeSWITCH SVN
anthm at freeswitch.org
Thu Mar 5 07:17:13 PST 2009
Author: anthm
Date: Thu Mar 5 09:17:12 2009
New Revision: 12460
Log:
string buffer too small
Modified:
freeswitch/trunk/libs/esl/perl/single_command.pl
freeswitch/trunk/libs/esl/src/esl_oop.cpp
Modified: freeswitch/trunk/libs/esl/perl/single_command.pl
==============================================================================
--- freeswitch/trunk/libs/esl/perl/single_command.pl (original)
+++ freeswitch/trunk/libs/esl/perl/single_command.pl Thu Mar 5 09:17:12 2009
@@ -4,5 +4,5 @@
my $args = join(" ", @ARGV);
my $con = new ESL::ESLconnection("localhost", "8021", "ClueCon");
-my $e = $con->api($command, $args);
+my $e = $con->bgapi($command, $args);
print $e->getBody();
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 Thu Mar 5 09:17:12 2009
@@ -92,7 +92,7 @@
return NULL;
}
- len = strlen(cmd) + (arg ? strlen(arg) : 0) + 5;
+ len = strlen(cmd) + (arg ? strlen(arg) : 0) + 8;
cmd_buf = (char *) malloc(len);
assert(cmd_buf);
More information about the Freeswitch-trunk
mailing list