Skip to content
Snippets Groups Projects
Commit b20feacd authored by Julian Oes's avatar Julian Oes Committed by Beat Küng
Browse files

drivers: fix -Wstringop-truncation

GCC 9 complained about stringop-truncation which is a cautionary message
to prevent using strncpy with non-null terminated strings.

We can fix this by copying one byte less than the destination size and
then manually adding the null termination, as we already do.
parent 3ab75b83
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment