From 72dc5bb1fa7bd0823ef17269ab6e5c7dd76f90fd Mon Sep 17 00:00:00 2001 From: dbiastoch Date: Tue, 2 Mar 2021 15:30:12 +0100 Subject: dlt-receive:Fix compiler warning dlt_common.c: -Check if filter file fits into read buffer -Cast 'filename' into non-const to make it json-c API conform Signed-off-by: dbiastoch --- include/dlt/dlt_common.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 89f9c96..f2ffe50 100644 --- a/include/dlt/dlt_common.h +++ b/include/dlt/dlt_common.h @@ -298,6 +298,7 @@ enum { # define DLT_FILTER_MAX 30 /**< Maximum number of filters */ # define JSON_FILTER_NAME_SIZE 16 /* Size of buffer for the filter names in json filter files */ +# define JSON_FILTER_SIZE 200 /* Size in bytes, that the definition of one filter with all parameters needs */ # define DLT_MSG_READ_VALUE(dst, src, length, type) \ { \ -- cgit v1.2.1