]> Gentwo Git Trees - linux/.git/commit
xfs: Replace strncpy with memcpy
authorMarcelo Moreira <marcelomoreira1905@gmail.com>
Wed, 27 Aug 2025 22:17:07 +0000 (19:17 -0300)
committerCarlos Maiolino <cem@kernel.org>
Fri, 5 Sep 2025 08:18:59 +0000 (10:18 +0200)
commit33ddc796ecbd50cd6211aa9e9eddbf4567038b49
tree589a1b2b2ef91c4fa5dc3ccfb0d6452de07d53f4
parent851c4c96db001f51bdad1432aa54549c7fe2c63e
xfs: Replace strncpy with memcpy

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>
fs/xfs/scrub/symlink_repair.c