diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-08-19 11:59:05 +0200 |
---|---|---|
committer | Daniel Thompson (RISCstar) <danielt@kernel.org> | 2025-09-20 19:56:28 +0100 |
commit | 5b26f1a3146454a24dbcb8b1cdae5d507f7432e6 (patch) | |
tree | a06d12e920352adda8fff6cbdd61d81619acbe41 /net/unix/af_unix.c | |
parent | 8790cc2940bf9f5ec4d7458b0ea7f94a8acb094f (diff) |
kdb: Replace deprecated strcpy() with memcpy() in parse_grep()
strcpy() is deprecated; use memcpy() instead.
We can safely use memcpy() because we already know the length of the
source string 'cp' and that it is guaranteed to be NUL-terminated within
the first KDB_GREP_STRLEN bytes.
Link: https://github.com/KSPP/linux/issues/88
Reviewed-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions