diff options
author | Lutz Helwing <lutz_helwing@mentor.com> | 2015-10-09 14:34:19 +0200 |
---|---|---|
committer | Alexander Wenzel <Alexander.AW.Wenzel@bmw.de> | 2015-10-28 11:37:32 +0100 |
commit | fb99b7875dfe64a4073aa14f33c551098632847c (patch) | |
tree | d771a7287e00b9dcedb3f94281cfdcb58d306a0e /tests/dlt_test_receiver.c | |
parent | a65dcd34513308b37165f8544ab647016d6e7209 (diff) | |
download | DLT-daemon-fb99b7875dfe64a4073aa14f33c551098632847c.tar.gz |
Purged all warnings for -Wall -Wextra
Signed-off-by: Alexander Wenzel <Alexander.AW.Wenzel@bmw.de>
Diffstat (limited to 'tests/dlt_test_receiver.c')
-rw-r--r-- | tests/dlt_test_receiver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/dlt_test_receiver.c b/tests/dlt_test_receiver.c index 0c1d5cd..a0e86f7 100644 --- a/tests/dlt_test_receiver.c +++ b/tests/dlt_test_receiver.c @@ -373,11 +373,11 @@ int dlt_receive_filetransfer_callback(DltMessage *message, void *data) { // truncate beginning of data stream ( FLDA, File identifier and package number) char *position = strchr(text, 32); // search for space - snprintf(text, DLT_RECEIVE_TEXTBUFSIZE, position+1); + strncpy(text, position+1, DLT_RECEIVE_TEXTBUFSIZE); position = strchr(text, 32); - snprintf(text, DLT_RECEIVE_TEXTBUFSIZE, position+1); + strncpy(text, position+1, DLT_RECEIVE_TEXTBUFSIZE); position = strchr(text, 32); - snprintf(text, DLT_RECEIVE_TEXTBUFSIZE, position+1); + strncpy(text, position+1, DLT_RECEIVE_TEXTBUFSIZE); // truncate ending of data stream ( FLDA ) int len = strlen(text); |