string buffer too small
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12460 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
b2d0d1689b
commit
3792a175f0
|
@ -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();
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue