Re: [PATCH v2] net: wwan: replace deprecated strncpy with strscpy

From: patchwork-bot+netdevbpf
Date: Fri Oct 20 2023 - 22:09:49 EST


Hello:

This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:

On Thu, 19 Oct 2023 18:21:22 +0000 you wrote:
> strncpy() is deprecated for use on NUL-terminated destination strings
> [1] and as such we should prefer more robust and less ambiguous string
> interfaces.
>
> We expect chinfo.name to be NUL-terminated based on its use with format
> strings and sprintf:
> rpmsg/rpmsg_char.c
> 165: dev_err(dev, "failed to open %s\n", eptdev->chinfo.name);
> 368: return sprintf(buf, "%s\n", eptdev->chinfo.name);
>
> [...]

Here is the summary with links:
- [v2] net: wwan: replace deprecated strncpy with strscpy
https://git.kernel.org/netdev/net-next/c/75e7d0b2d223

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html