diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-08-19 12:59:05 +0300 |
|---|---|---|
| committer | Daniel Thompson (RISCstar) <danielt@kernel.org> | 2025-09-20 21:56:28 +0300 |
| commit | 5b26f1a3146454a24dbcb8b1cdae5d507f7432e6 (patch) | |
| tree | a06d12e920352adda8fff6cbdd61d81619acbe41 /drivers/fpga/fpga-mgr.c | |
| parent | 8790cc2940bf9f5ec4d7458b0ea7f94a8acb094f (diff) | |
| download | linux-5b26f1a3146454a24dbcb8b1cdae5d507f7432e6.tar.xz | |
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 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions
