Commit d250f14f authored by James Flowers's avatar James Flowers Committed by Jakub Kicinski
Browse files

net/smc: Replace use of strncpy on NUL-terminated string with strscpy



strncpy is deprecated for use on NUL-terminated strings, as indicated in
Documentation/process/deprecated.rst. strncpy NUL-pads the destination
buffer and doesn't guarantee the destination buffer will be NUL
terminated.

Signed-off-by: default avatarJames Flowers <bold.zone2373@fastmail.com>
Reviewed-by: default avatarSimon Horman <horms@kernel.org>
Reviewed-by: default avatarDust Li <dust.li@linux.alibaba.com>
Reviewed-by: default avatarMahanta Jambigi <mjambigi@linux.ibm.com>
Link: https://patch.msgid.link/20250901030512.80099-1-bold.zone2373@fastmail.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 99502c61
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment