diff options
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); |