Commit 55624db0 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Hans de Goede

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: default avatarAndy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20240602090244.1666360-8-andy.shevchenko@gmail.comReviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
parent 84b26f50
...@@ -1850,7 +1850,7 @@ static int __init ts_parse_props(char *str) ...@@ -1850,7 +1850,7 @@ static int __init ts_parse_props(char *str)
u32 u32val; u32 u32val;
int i, ret; int i, ret;
strscpy(orig_str, str, sizeof(orig_str)); strscpy(orig_str, str);
/* /*
* str is part of the static_command_line from init/main.c and poking * str is part of the static_command_line from init/main.c and poking
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment