]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xfrm: replace deprecated strncpy with strscpy_pad
authorDaniel Yang <danielyangkang@gmail.com>
Wed, 13 Nov 2024 09:20:58 +0000 (01:20 -0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Thu, 14 Nov 2024 10:38:37 +0000 (11:38 +0100)
commit9e1a6db68e3ccc5c20fd2d6243285d1cc7215fe4
treee9ba27d7659b37d90ed3a1019a4f8e20850f9342
parent9d287e70c51f1c141ac588add261ed2efdd6fc6b
xfrm: replace deprecated strncpy with strscpy_pad

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@gmail.com>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
net/xfrm/xfrm_user.c