diff options
Diffstat (limited to 'include/dlt/dlt_offline_trace.h')
-rw-r--r-- | include/dlt/dlt_offline_trace.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/dlt/dlt_offline_trace.h b/include/dlt/dlt_offline_trace.h index 4b93719..0e7a356 100644 --- a/include/dlt/dlt_offline_trace.h +++ b/include/dlt/dlt_offline_trace.h @@ -53,10 +53,12 @@ #ifndef DLT_OFFLINE_TRACE_H #define DLT_OFFLINE_TRACE_H +#include <limits.h> + typedef struct { - char directory[256]; /**< (String) Store DLT messages to local directory */ - char filename[256]; /**< (String) Filename of currently used log file */ + char directory[NAME_MAX + 1]; /**< (String) Store DLT messages to local directory */ + char filename[NAME_MAX + 1]; /**< (String) Filename of currently used log file */ int fileSize; /**< (int) Maximum size in bytes of one trace file (Default: 1000000) */ int maxSize; /**< (int) Maximum size of all trace files (Default: 4000000) */ |