]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
USB: serial: ti_usb_3410_5052: Use safer strscpy() instead of strcpy()
authorAi Chao <aichao@kylinos.cn>
Tue, 10 Mar 2026 09:44:29 +0000 (17:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:39:04 +0000 (15:39 +0100)
commitc384f7ad44f940c2d054bbe4c06840e2073af788
tree85be32a3d127a3d4918c3a7d7e1e3b37756bf5f9
parentb145c3f29d62f71cc9d2d714e2d4ae4c8d3f863d
USB: serial: ti_usb_3410_5052: 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-2-aichao@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ti_usb_3410_5052.c