tag | 327529b70e184b55dc31831d7a4c02aae80d09f8 | |
---|---|---|
tagger | Jens Axboe <axboe@kernel.dk> | Mon Aug 28 11:05:01 2023 -0600 |
object | 146afeb235ccec10c17ad8ea26327c0c79dbd968 |
for-6.6/block-2023-08-28
commit | 146afeb235ccec10c17ad8ea26327c0c79dbd968 | [log] [tgz] |
---|---|---|
author | Xu Panda <xu.panda@zte.com.cn> | Sat Dec 03 14:22:58 2022 +0800 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Aug 22 18:07:50 2023 -0600 |
tree | 737fad9a7d7fecfeb94966fca627908c336e4444 | |
parent | 3bfeb61256643281ac4be5b8a57e9d9da3db4335 [diff] |
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 <xu.panda@zte.com.cn> Signed-off-by: Yang Yang <yang.yang29@zte.com> Reviewed-by: Justin Stitt <justinstitt@google.com> Link: https://lore.kernel.org/r/202212031422587503771@zte.com.cn Signed-off-by: Jens Axboe <axboe@kernel.dk>