]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: typec: tcpm: Use safer strscpy() instead of strcpy()
authorAi Chao <aichao@kylinos.cn>
Tue, 10 Mar 2026 09:44:32 +0000 (17:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 11 Mar 2026 14:39:04 +0000 (15:39 +0100)
commit2131540de4adc8eb7960ebea9915694ec0ce430d
treeeff2900025b71aba0bd07bc1ad33297ffb8e9eaf
parent224fb8661f66a58530564a2cdce42b219adde4cb
usb: typec: tcpm: 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-5-aichao@kylinos.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/tcpm/tcpm.c