mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
app_osplookup.c: Avoid two format truncations.
GCC 7 warned about this. ASTERISK-27578 Change-Id: I4a00458dbe9b575ef04338b6a7852272745e1552
This commit is contained in:
@@ -2348,7 +2348,7 @@ static int osplookup_exec(
|
|||||||
struct osp_headers headers;
|
struct osp_headers headers;
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
const char* cinfo[OSP_MAX_CUSTOMINFO] = { NULL };
|
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;
|
struct osp_results results;
|
||||||
const char* status;
|
const char* status;
|
||||||
char* tmp;
|
char* tmp;
|
||||||
@@ -2634,7 +2634,7 @@ static int ospnext_exec(
|
|||||||
struct ast_var_t* current;
|
struct ast_var_t* current;
|
||||||
struct osp_results results;
|
struct osp_results results;
|
||||||
OSPE_OPERATOR_NAME type;
|
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;
|
unsigned int callidtypes = OSP_CALLID_UNDEF;
|
||||||
const char* status;
|
const char* status;
|
||||||
char* tmp;
|
char* tmp;
|
||||||
|
Reference in New Issue
Block a user