Skip to content

Commit 55624db

Browse files
andy-shevjwrdegoede
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hans de Goede <[email protected]> Signed-off-by: Hans de Goede <[email protected]>
1 parent 84b26f5 commit 55624db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/platform/x86/touchscreen_dmi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1850,7 +1850,7 @@ static int __init ts_parse_props(char *str)
18501850
u32 u32val;
18511851
int i, ret;
18521852

1853-
strscpy(orig_str, str, sizeof(orig_str));
1853+
strscpy(orig_str, str);
18541854

18551855
/*
18561856
* str is part of the static_command_line from init/main.c and poking

0 commit comments

Comments
 (0)