Replace the deprecated strncpy() with the two-argument version of
strscpy() as the destination is an array
and buffer should be NUL-terminated.
Signed-off-by: Pranav Tyagi <redacted>
---
net/sched/em_text.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
From: Simon Horman <horms@kernel.org> Date: 2025-06-20 19:59:23
On Fri, Jun 20, 2025 at 04:06:53PM +0530, Pranav Tyagi wrote:
Replace the deprecated strncpy() with the two-argument version of
strscpy() as the destination is an array
and buffer should be NUL-terminated.
Signed-off-by: Pranav Tyagi <redacted>
Thanks for the update.
Reviewed-by: Simon Horman <horms@kernel.org>
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski [off-list ref]:
On Fri, 20 Jun 2025 16:06:53 +0530 you wrote:
Replace the deprecated strncpy() with the two-argument version of
strscpy() as the destination is an array
and buffer should be NUL-terminated.
Signed-off-by: Pranav Tyagi <redacted>
---
net/sched/em_text.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)