diff options
author | Alexander Traud <pabstraud@compuserve.com> | 2018-01-12 11:27:23 +0100 |
---|---|---|
committer | Alexander Traud <pabstraud@compuserve.com> | 2018-01-12 11:27:23 +0100 |
commit | 685bab254c8285a25daa4f6a1e962bf7be0569b4 (patch) | |
tree | 6793df380f8bfebe5746cf3923c060c3968a5c07 /apps | |
parent | e4ee41da4da208fc1a3bd9261e6b91569ef148a7 (diff) |
app_osplookup.c: Avoid two format truncations.
GCC 7 warned about this.
ASTERISK-27578
Change-Id: I4a00458dbe9b575ef04338b6a7852272745e1552
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_osplookup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_osplookup.c b/apps/app_osplookup.c index d749a74ac..c42e1873e 100644 --- a/apps/app_osplookup.c +++ b/apps/app_osplookup.c @@ -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; |