]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: button: Use strscpy() instead of strcpy()
authorMuhammad Qasim Abdul Majeed <qasim.majeed20@gmail.com>
Sun, 1 Sep 2024 19:18:26 +0000 (00:18 +0500)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 3 Sep 2024 14:29:16 +0000 (16:29 +0200)
commit7fcf82e7348766840e5e259488662751c6db22a7
treeac363aa7cb0859c723824badd1c983dcbac08df1
parent1b9c2e94df1408e567f23641f6052af9a75614d1
ACPI: button: Use strscpy() instead of strcpy()

Replace strcpy() with strscpy() in the ACPI button driver.

strcpy() has been deprecated because it is generally unsafe, so help to
eliminate it from the kernel source.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Muhammad Qasim Abdul Majeed <qasim.majeed20@gmail.com>
Link: https://patch.msgid.link/20240901191826.421488-1-qasim.majeed20@gmail.com
[ rjw: Subject and changelog edits ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/button.c