]> Git Repo - linux.git/commit
xfs: use strscpy() to instead of strncpy()
authorXu Panda <[email protected]>
Wed, 1 Feb 2023 17:31:34 +0000 (09:31 -0800)
committerDarrick J. Wong <[email protected]>
Sun, 5 Feb 2023 16:48:11 +0000 (08:48 -0800)
commit8954c44ff47749255a2ee2b1d08ec3deb8345bc1
tree019f5265523626dd80aa272d2a5e27ef3fbea400
parent6d796c50f84ca79f1722bb131799e5a5710c4700
xfs: 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: Darrick J. Wong <[email protected]>
Signed-off-by: Darrick J. Wong <[email protected]>
fs/xfs/xfs_xattr.c
This page took 0.056797 seconds and 4 git commands to generate.