diff options
author | Moritz Warning <moritzwarning@web.de> | 2020-11-10 09:42:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-10 17:42:47 +0900 |
commit | e4a958b5a30445851f05d39423189eebf99e2c00 (patch) | |
tree | f090983fb0b1c79c010823767ab4a583b53160ec /src/shared | |
parent | 9608717a84d83e0bad0a0855cf3479d585c86613 (diff) | |
download | DLT-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.c | 2 |
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) { |