From: Anthony Minessale Date: Fri, 13 Mar 2009 19:18:05 +0000 (+0000) Subject: pad buffer X-Git-Tag: v1.0.4~1533 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=891d8a0f5e01cfc9bd7046fa119db8cf3291c792;p=thirdparty%2Ffreeswitch.git pad buffer git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12593 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/esl/src/esl_oop.cpp b/libs/esl/src/esl_oop.cpp index cd6fb53afc..8328c2e416 100644 --- a/libs/esl/src/esl_oop.cpp +++ b/libs/esl/src/esl_oop.cpp @@ -63,7 +63,7 @@ ESLevent *ESLconnection::api(const char *cmd, const char *arg) return NULL; } - len = strlen(cmd) + (arg ? strlen(arg) : 0) + 5; + len = strlen(cmd) + (arg ? strlen(arg) : 0) + 10; cmd_buf = (char *) malloc(len); assert(cmd_buf); @@ -92,7 +92,7 @@ ESLevent *ESLconnection::bgapi(const char *cmd, const char *arg) return NULL; } - len = strlen(cmd) + (arg ? strlen(arg) : 0) + 8; + len = strlen(cmd) + (arg ? strlen(arg) : 0) + 10; cmd_buf = (char *) malloc(len); assert(cmd_buf);