From 3792a175f01edba134d49386782b8d15e939680f Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 5 Mar 2009 15:17:12 +0000 Subject: [PATCH] string buffer too small git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12460 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- libs/esl/perl/single_command.pl | 2 +- libs/esl/src/esl_oop.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/esl/perl/single_command.pl b/libs/esl/perl/single_command.pl index ab75888309..1b114f86d2 100644 --- a/libs/esl/perl/single_command.pl +++ b/libs/esl/perl/single_command.pl @@ -4,5 +4,5 @@ my $command = shift; 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(); diff --git a/libs/esl/src/esl_oop.cpp b/libs/esl/src/esl_oop.cpp index fd653c6685..f5020f2ac8 100644 --- a/libs/esl/src/esl_oop.cpp +++ b/libs/esl/src/esl_oop.cpp @@ -92,7 +92,7 @@ ESLevent *ESLconnection::bgapi(const char *cmd, const char *arg) 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);