Files
linux/drivers/input
Justin Stitt 96609688ab Input: synaptics-rmi4 - replace deprecated strncpy
`strncpy` is deprecated for use on NUL-terminated destination strings [1]

Let's use memcpy() as the bounds have already been checked and this
decays into a simple byte copy from one buffer to another removing any
ambiguity that strncpy has.

Signed-off-by: Justin Stitt <justinstitt@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20230921-strncpy-drivers-input-rmi4-rmi_f34-c-v1-1-4aef2e84b8d2@google.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
2023-09-30 09:24:15 -07:00
..
2023-07-17 09:20:46 -07:00
2020-10-06 18:34:15 -07:00
2022-09-29 16:25:42 -07:00
2022-09-29 16:25:42 -07:00
2023-07-17 09:20:46 -07:00
2022-09-25 00:57:25 -07:00