]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: hp: hp-bioscfg: Use 2-argument strscpy()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sun, 2 Jun 2024 08:57:55 +0000 (11:57 +0300)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Mon, 3 Jun 2024 11:51:36 +0000 (14:51 +0300)
commitc5288cda69ee2d8607f5026bd599a5cebf0ee783
tree9e62ee51cb7ed544f4b7b9ea833a816364a40752
parent057e025a4f1c6f8612ddf19e621cf1b7c2e53c61
platform/x86: hp: hp-bioscfg: 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-3-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/hp/hp-bioscfg/enum-attributes.c
drivers/platform/x86/hp/hp-bioscfg/int-attributes.c
drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c
drivers/platform/x86/hp/hp-bioscfg/passwdobj-attributes.c
drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c
drivers/platform/x86/hp/hp-bioscfg/string-attributes.c