]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usbip: vhci_sysfs: Use safer strscpy() instead of strcpy()
authorAi Chao <aichao@kylinos.cn>
Tue, 10 Mar 2026 09:44:34 +0000 (17:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:39:04 +0000 (15:39 +0100)
commit8f196a359e1b4f80d360c57ed32bec15d5dd8e0e
treea9962968e28742ecf137b2f4476eb2aa729d08cc
parent9b4051a47da5050ba349b630494cf5ee3d5aa1e1
usbip: vhci_sysfs: Use safer strscpy() instead of strcpy()

Use a safer function strscpy() instead of strcpy() for copying to
arrays.

Only idiomatic code replacement, and no functional changes.

Signed-off-by: Ai Chao <aichao@kylinos.cn>
Link: https://patch.msgid.link/20260310094434.3639602-7-aichao@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/vhci_sysfs.c