m68k: Replace memcpy() + manual NUL-termination with strscpy()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 15 Apr 2025 07:24:33 +0000 (09:24 +0200)
committerGreg Ungerer <gerg@kernel.org>
Sun, 18 May 2025 22:54:30 +0000 (08:54 +1000)
commiteb43efd062d10bacdf6b50df0e300a7049474e51
tree3af91e5f6777d1386fb6ae523ae6d3c522b187ce
parent245bb7b95aff5f20884c0b635eacb96645eadc84
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: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
arch/m68k/kernel/setup_no.c