cifs: move from strlcpy with unused retval to strscpy
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 18 Aug 2022 21:01:41 +0000 (23:01 +0200)
committerSteve French <stfrench@microsoft.com>
Fri, 19 Aug 2022 16:02:26 +0000 (11:02 -0500)
commit13609a8b3ac6b0af38127a2b97fe62c0d06a8282
tree271b2103936c97ea07493d70dbb56dea0f74ad1f
parentca08d0eac020d48a3141dbec0a3cf64fbdb17cde
cifs: move from strlcpy with unused retval to strscpy

Follow the advice of the below link and prefer 'strscpy' in this
subsystem. Conversion is 1:1 because the return value is not used.
Generated by a coccinelle script.

Link: https://lore.kernel.org/r/CAHk-=wgfRnXz0W3D37d01q3JFkr_i_uTL=V6A6G1oUZcprmknw@mail.gmail.com/
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsroot.c
fs/cifs/connect.c
fs/cifs/smb2pdu.c