]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/smc: replace strncpy with strscpy
authorPranav Tyagi <pranav.tyagi03@gmail.com>
Fri, 20 Jun 2025 10:25:59 +0000 (15:55 +0530)
committerJakub Kicinski <kuba@kernel.org>
Mon, 23 Jun 2025 23:56:21 +0000 (16:56 -0700)
commitae2402bf882b40fb9cf3b6a5c9ff0e6c7a9ef842
treeb4d8b07c5dde1d059fd63baeb611e1691e408718
parentbf92ffb0d332f7b91e689cb24b0840607802329d
net/smc: replace strncpy with strscpy

Replace the deprecated strncpy() with two-argument version of
strscpy() as the destination is an array
and should be NUL-terminated.

Signed-off-by: Pranav Tyagi <pranav.tyagi03@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250620102559.6365-1-pranav.tyagi03@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/smc/smc_pnet.c