summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVo Trung Chi <chi.votrung@vn.bosch.com>2019-10-29 14:18:29 +0700
committerSaya Sugiura <39760799+ssugiura@users.noreply.github.com>2019-10-29 08:18:29 +0100
commit9011106fdaf5f66c232da371e426c52010771cbd (patch)
tree7993d785a2143bfb8d919d92f65d14fa9699f73c /include
parent1cabce7f04775990533bc8e066497e456350249a (diff)
downloadDLT-daemon-9011106fdaf5f66c232da371e426c52010771cbd.tar.gz
fix the dlt offline trace file name creation (#178)
The function dlt_offline_trace_file_name() use sizeof the pointer as the maximum file name size, so it cannot create the file name as expected. Signed-off-by: Vo Trung Chi <chi.votrung@vn.bosch.com>
Diffstat (limited to 'include')
-rw-r--r--include/dlt/dlt_offline_trace.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dlt/dlt_offline_trace.h b/include/dlt/dlt_offline_trace.h
index 58b14d4..7fcca0f 100644
--- a/include/dlt/dlt_offline_trace.h
+++ b/include/dlt/dlt_offline_trace.h
@@ -149,10 +149,12 @@ unsigned int dlt_offline_trace_storage_dir_info(char *path, char *file_name, cha
/**
* creates filename with index
* @param log_file_name file name created with index
+ * @param length the maximum length of the log_file_name
* @param name filename base
* @param idx index to be used for file name creation
*/
-void dlt_offline_trace_file_name(char *log_file_name, char *name, unsigned int idx);
+void dlt_offline_trace_file_name(char *log_file_name, size_t length,
+ char *name, unsigned int idx);
/**
* generates index for log file name