diff options
author | Oded Gabbay <ogabbay@kernel.org> | 2021-04-03 16:37:29 +0300 |
---|---|---|
committer | Oded Gabbay <ogabbay@kernel.org> | 2021-04-09 14:09:24 +0300 |
commit | ae382c22fc06058b24bb49c92f3b0af653499589 (patch) | |
tree | adcd13634432627e0ad8f7bed83c0b991ee84e01 /drivers/hwtracing/coresight | |
parent | 131d1ba1304a9a2040648cb03309d9444e7fe45f (diff) | |
download | linux-ae382c22fc06058b24bb49c92f3b0af653499589.tar.gz linux-ae382c22fc06058b24bb49c92f3b0af653499589.tar.bz2 linux-ae382c22fc06058b24bb49c92f3b0af653499589.zip |
habanalabs: use strscpy instead of sprintf and strlcpy
Prefer the use of strscpy when copying the ASIC name into a char array,
to prevent accidentally exceeding the array's length.
In addition, strlcpy is frowned upon so replace it.
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/hwtracing/coresight')
0 files changed, 0 insertions, 0 deletions