aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorXu Panda <xu.panda@zte.com.cn>2022-12-09 15:38:59 +0800
committerJakub Kicinski <kuba@kernel.org>2022-12-12 13:00:00 -0800
commit80a464d83f08cac5052c7f857fc067b3fe88071d (patch)
tree5e5f0530a2df19f7022a3d10748a541824fa9e3f /net/unix/af_unix.c
parentda05cecc4939c0410d56c29e252998b192756318 (diff)
downloadlinux-80a464d83f08cac5052c7f857fc067b3fe88071d.tar.gz
linux-80a464d83f08cac5052c7f857fc067b3fe88071d.tar.bz2
linux-80a464d83f08cac5052c7f857fc067b3fe88071d.zip
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 <xu.panda@zte.com.cn> Signed-off-by: Yang Yang <yang.yang29@zte.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/202212091538591375035@zte.com.cn Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions