Skip to content
Commit 8297ca5e authored by Ole Wiedemann's avatar Ole Wiedemann Committed by Greg Kroah-Hartman
Browse files

staging: android: ashmem: Replace strcpy with strscpy



Replaced strcpy call with safer strscpy call with given length.
This elimates the need to manually null-terminate the given string,
since strscpy will null terminate the destination anyway.:

Signed-off-by: default avatarOle Wiedemann <ole.wiedemann@fau.de>
Co-developed-by: default avatarSebastian Scherbel <sebastian.scherbel@fau.de>
Signed-off-by: default avatarSebastian Scherbel <sebastian.scherbel@fau.de>
Acked-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Acked-by: default avatarJoel Fernandes (Google) <joel@joelfernandes.org>
Acked-by: default avatarTodd Kjos <tkjos@google.com>
Link: https://lore.kernel.org/r/20191213131032.22579-1-ole.wiedemann@fau.de


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cdb9c044
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment