Merge "AST-2018-005: Fix tdata leaks when calling pjsip_endpt_send_response(2)"
[asterisk/asterisk.git] / apps / app_osplookup.c
index ef816c3..c42e187 100644 (file)
@@ -36,8 +36,6 @@
 
 #include "asterisk.h"
 
-ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
-
 #include <osp/osp.h>
 #include <osp/osputils.h>
 #include <osp/ospb64.h>
@@ -2348,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;
@@ -2634,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;