aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/test_util.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-04-15 07:24:33 +0000
committerGreg Ungerer <[email protected]>2025-05-18 22:54:30 +0000
commiteb43efd062d10bacdf6b50df0e300a7049474e51 (patch)
tree3af91e5f6777d1386fb6ae523ae6d3c522b187ce /tools/testing/selftests/kvm/lib/test_util.c
parentm68k/kernel: replace strncpy() with strscpy() (diff)
downloadkernel-eb43efd062d10bacdf6b50df0e300a7049474e51.tar.gz
kernel-eb43efd062d10bacdf6b50df0e300a7049474e51.zip
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 <[email protected]> Signed-off-by: Greg Ungerer <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/test_util.c')
0 files changed, 0 insertions, 0 deletions