]> git.ipfire.org Git - thirdparty/linux.git/commit
platform/surface: Replace deprecated strcpy() in surface_button_add()
authorThorsten Blum <thorsten.blum@linux.dev>
Mon, 5 Jan 2026 14:50:46 +0000 (15:50 +0100)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 6 Jan 2026 08:50:46 +0000 (10:50 +0200)
commit1716c1e0860b42980f338b69b974149d035582ca
treecf8af2ab3865b2bc012c08f7a614cb4e320a15c0
parent2a2c085de1f3f54a6222fbef5b45f1d3c40e98e3
platform/surface: Replace deprecated strcpy() in surface_button_add()

strcpy() has been deprecated [1] because it performs no bounds checking
on the destination buffer, which can lead to buffer overflows. Replace
it with the safer strscpy().  No functional changes.

Link: https://www.kernel.org/doc/html/latest/process/deprecated.html#strcpy
Reviewed-by: Chen Yu <yu.c.chen@intel.com>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260105145045.52764-2-thorsten.blum@linux.dev
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/surface/surfacepro3_button.c