Re: [PATCH net] xfrm: replace deprecated strncpy with strscpy_pad

From: Steffen Klassert
Date: Fri Nov 15 2024 - 03:08:23 EST


On Wed, Nov 13, 2024 at 01:20:58AM -0800, Daniel Yang wrote:
> The function strncpy is deprecated since it does not guarantee the
> destination buffer is NULL terminated. Recommended replacement is
> strscpy. The padded version was used to remain consistent with the other
> strscpy_pad usage in the modified function.
>
> Signed-off-by: Daniel Yang <danielyangkang@xxxxxxxxx>

Applied to ipsec-next, thanks!