Merge "app_osplookup.c: Avoid two format truncations."

This commit is contained in:
Jenkins2 2018-01-12 10:36:23 -06:00 committed by Gerrit Code Review
commit 4573aa1270
1 changed files with 2 additions and 2 deletions

View File

@ -2346,7 +2346,7 @@ static int osplookup_exec(
struct osp_headers headers;
unsigned int i;
const char* cinfo[OSP_MAX_CUSTOMINFO] = { NULL };
char buffer[OSP_SIZE_TOKSTR];
char buffer[OSP_SIZE_TOKSTR + strlen(": ") + strlen(OSP_SIP_HEADER)];
struct osp_results results;
const char* status;
char* tmp;
@ -2632,7 +2632,7 @@ static int ospnext_exec(
struct ast_var_t* current;
struct osp_results results;
OSPE_OPERATOR_NAME type;
char buffer[OSP_SIZE_TOKSTR];
char buffer[OSP_SIZE_TOKSTR + strlen(": ") + strlen(OSP_SIP_HEADER)];
unsigned int callidtypes = OSP_CALLID_UNDEF;
const char* status;
char* tmp;