summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorMoritz Warning <moritzwarning@web.de>2020-11-10 09:42:47 +0100
committerGitHub <noreply@github.com>2020-11-10 17:42:47 +0900
commite4a958b5a30445851f05d39423189eebf99e2c00 (patch)
treef090983fb0b1c79c010823767ab4a583b53160ec /src/shared
parent9608717a84d83e0bad0a0855cf3479d585c86613 (diff)
downloadDLT-daemon-e4a958b5a30445851f05d39423189eebf99e2c00.tar.gz
dlt-common.c: ensure null terminated string (#256)
Signed-off-by: Moritz Warning <moritzwarning@web.de>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/dlt_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/dlt_common.c b/src/shared/dlt_common.c
index 823bca7..2ff3775 100644
--- a/src/shared/dlt_common.c
+++ b/src/shared/dlt_common.c
@@ -3844,7 +3844,7 @@ int dlt_set_loginfo_parse_service_id(char *resp_text,
/* ascii type, syntax is 'get_log_info, ..' */
/* check target id */
- strncpy(get_log_info_tag, "get_log_info", strlen("get_log_info"));
+ strncpy(get_log_info_tag, "get_log_info", strlen("get_log_info") + 1);
ret = memcmp((void *)resp_text, (void *)get_log_info_tag, sizeof(get_log_info_tag) - 1);
if (ret == 0) {