pad buffer

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12593 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-03-13 19:18:05 +00:00
parent 5e1fcbd1bf
commit 891d8a0f5e

View File

@ -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);