]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: intel: chtwc_int33fe: Use 2-argument strscpy()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sun, 2 Jun 2024 08:57:56 +0000 (11:57 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 3 Jun 2024 11:51:38 +0000 (14:51 +0300)
commit914d906aec96fc1881060b20f0d017a0f0f5ce5d
tree05c6c30d8fe91a5c1eb8d4cf8e6833343faefb45
parentc5288cda69ee2d8607f5026bd599a5cebf0ee783
platform/x86: intel: chtwc_int33fe: Use 2-argument strscpy()

Use 2-argument strscpy(), which is not only shorter but also provides
an additional check that destination buffer is an array.

Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240602090244.1666360-4-andy.shevchenko@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/intel/chtwc_int33fe.c