]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: touchscreen_dmi: Use 2-argument strscpy()
authorAndy Shevchenko <andy.shevchenko@gmail.com>
Sun, 2 Jun 2024 08:58:00 +0000 (11:58 +0300)
committerHans de Goede <hdegoede@redhat.com>
Mon, 3 Jun 2024 09:12:38 +0000 (11:12 +0200)
commit55624db051c8bdd39acbb1f35774c3f7b97c07b8
tree06e48f8bd589caf3f4d257bfb0cebda5744a2cd5
parent84b26f509c1b9c8b3c3c63d75912701f151fd148
platform/x86: touchscreen_dmi: 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-8-andy.shevchenko@gmail.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/touchscreen_dmi.c