diff options
| author | Xu Panda <[email protected]> | 2022-12-03 06:22:58 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2023-08-23 00:07:50 +0000 |
| commit | 146afeb235ccec10c17ad8ea26327c0c79dbd968 (patch) | |
| tree | 737fad9a7d7fecfeb94966fca627908c336e4444 /drivers/md/dm-raid.c | |
| parent | block: sed-opal: keyring support for SED keys (diff) | |
| download | kernel-146afeb235ccec10c17ad8ea26327c0c79dbd968.tar.gz kernel-146afeb235ccec10c17ad8ea26327c0c79dbd968.zip | |
block: use strscpy() to instead of strncpy()
The implementation of strscpy() is more robust and safer.
That's now the recommended way to copy NUL terminated strings.
Signed-off-by: Xu Panda <[email protected]>
Signed-off-by: Yang Yang <[email protected]>
Reviewed-by: Justin Stitt <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/md/dm-raid.c')
0 files changed, 0 insertions, 0 deletions
