]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xfs: Replace strncpy with memcpy
authorMarcelo Moreira <marcelomoreira1905@gmail.com>
Mon, 24 Nov 2025 17:45:02 +0000 (12:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:46:07 +0000 (11:46 +0100)
commitfd6f9919efb4c2ba5ff9aa1d97738e08a2275feb
treec54af9f40b4d2cfaa2620d61bd47608b4a65473c
parent3e1c43f14521c8a0991811346a313535ec3a3c42
xfs: Replace strncpy with memcpy

[ Upstream commit 33ddc796ecbd50cd6211aa9e9eddbf4567038b49 ]

The changes modernizes the code by aligning it with current kernel best
practices. It improves code clarity and consistency, as strncpy is deprecated
as explained in Documentation/process/deprecated.rst. This change does
not alter the functionality or introduce any behavioral changes.

Suggested-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Marcelo Moreira <marcelomoreira1905@gmail.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Stable-dep-of: 678e1cc2f482 ("xfs: fix out of bounds memory read error in symlink repair")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/xfs/scrub/symlink_repair.c