diff options
author | James Flowers <bold.zone2373@fastmail.com> | 2025-08-31 20:04:59 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-09-02 14:05:49 -0700 |
commit | d250f14f5f0754ce2d05d9c0ce778e4a51f488b0 (patch) | |
tree | 72294aec2a018eb2ae096358bfc9703f50ff6b3d /tools/testing/selftests/net/lib/py/utils.py | |
parent | 99502c61e80c18dca754bace42b40fa289a79895 (diff) |
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: James Flowers <bold.zone2373@fastmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Dust Li <dust.li@linux.alibaba.com>
Reviewed-by: Mahanta Jambigi <mjambigi@linux.ibm.com>
Link: https://patch.msgid.link/20250901030512.80099-1-bold.zone2373@fastmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions