staging: vme_user: prefer strscpy over strcpy
authorMichael Straube <straube.linux@gmail.com>
Mon, 23 Oct 2023 09:00:01 +0000 (11:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 Oct 2023 10:57:46 +0000 (12:57 +0200)
commite26511f672432417cc1286e00bc65ab82012f5af
tree0a2158ee7289dde3da02bb6f41a1057bb8398f43
parent5e3441ebe93c82f85e582eed8e34eb7eee541e7e
staging: vme_user: prefer strscpy over strcpy

Using strcpy has potential for buffer overflows. It should be replaced
with strscpy where possible. In this case the return value of strcpy is
not used, so we can safely replace it with strscpy.

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Link: https://lore.kernel.org/r/20231023090001.7273-1-straube.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vme_user/vme_tsi148.c