Skip to content
Commit ae382c22 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

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: default avatarOded Gabbay <ogabbay@kernel.org>
parent 131d1ba1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment