thermal: hwmon: replace deprecated strcpy() with strscpy()
authorOsama Abdelkader <osama.abdelkader@gmail.com>
Wed, 3 Sep 2025 19:20:59 +0000 (21:20 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 5 Sep 2025 18:51:28 +0000 (20:51 +0200)
commit5136380b74f1e562ad96268578f22d8b1a29cb90
treebe3147987377181b069e96f34df02683461ae4ca
parente54ddc44506f018f75e61c76a213227bd67dffb6
thermal: hwmon: replace deprecated strcpy() with strscpy()

Since strcpy() is deprecated and the last user of it in the thermal
subsystem is thermal_hwmon_lookup_by_type(), replace strcpy() in that
function with strscpy().

Signed-off-by: Osama Abdelkader <osama.abdelkader@gmail.com>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Link: https://patch.msgid.link/20250903192059.11353-1-osama.abdelkader@gmail.com
[ rjw: Changelog rewrite ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/thermal_hwmon.c