diff options
author | Pranav Tyagi <pranav.tyagi03@gmail.com> | 2025-07-04 15:42:50 +0530 |
---|---|---|
committer | Carlos Maiolino <cem@kernel.org> | 2025-07-24 17:30:14 +0200 |
commit | f4a3f01e8e451fb3cb444a95a59964f4bc746902 (patch) | |
tree | 010bd9c34153e3c15b722dcc9f201e37ccaa735b /scripts/lib/kdoc/kdoc_output.py | |
parent | 8c10b04f9fc1760cb79068073686d8866e59d40f (diff) |
fs/xfs: replace strncpy with memtostr_pad()
Replace the deprecated strncpy() with memtostr_pad(). This also avoids
the need for separate zeroing using memset(). Mark sb_fname buffer with
__nonstring as its size is XFSLABEL_MAX and so no terminating NULL for
sb_fname.
Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_output.py')
0 files changed, 0 insertions, 0 deletions