diff options
author | Xu Panda <[email protected]> | 2022-12-09 15:38:59 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-12-12 13:00:00 -0800 |
commit | 80a464d83f08cac5052c7f857fc067b3fe88071d (patch) | |
tree | 5e5f0530a2df19f7022a3d10748a541824fa9e3f /lib/mpi/mpi-sub-ui.c | |
parent | da05cecc4939c0410d56c29e252998b192756318 (diff) |
net: hns3: use strscpy() to instead of strncpy()
The implementation of strscpy() is more robust and safer.
That's now the recommended way to copy NUL terminated strings.
Signed-off-by: Xu Panda <[email protected]>
Signed-off-by: Yang Yang <[email protected]>
Reviewed-by: Jiri Pirko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions