Commit eb43efd0 authored by Thorsten Blum's avatar Thorsten Blum Committed by Greg Ungerer
Browse files

m68k: Replace memcpy() + manual NUL-termination with strscpy()



Use strscpy() to safely copy the command-line string instead of memcpy()
followed by a manual NUL-termination.

The source string is also NUL-terminated and meets the __must_be_cstr()
requirement of strscpy().

No functional changes intended.

Signed-off-by: default avatarThorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: default avatarGreg Ungerer <gerg@linux-m68k.org>
parent 245bb7b9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment