aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/dev-replace.c
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-08-13 13:21:59 +0000
committerDaniel Gomez <[email protected]>2025-08-16 19:47:25 +0000
commit5eb4b9a4cdbb70d70377fe8fb2920b75910e5024 (patch)
treef89e7d7245a276c4c59395f9425f389609ad7d9e /fs/btrfs/dev-replace.c
parentLinux 6.17-rc1 (diff)
downloadkernel-5eb4b9a4cdbb70d70377fe8fb2920b75910e5024.tar.gz
kernel-5eb4b9a4cdbb70d70377fe8fb2920b75910e5024.zip
params: Replace deprecated strcpy() with strscpy() and memcpy()
strcpy() is deprecated; use strscpy() and memcpy() instead. In param_set_copystring(), we can safely use memcpy() because we already know the length of the source string 'val' and that it is guaranteed to be NUL-terminated within the first 'kps->maxlen' bytes. Link: https://github.com/KSPP/linux/issues/88 Signed-off-by: Thorsten Blum <[email protected]> Reviewed-by: Daniel Gomez <[email protected]> Reviewed-by: Petr Pavlu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Gomez <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions