Messages in this thread | | | Subject | Re: [PATCH v2] hamradio: replace deprecated strncpy with strscpy_pad | From | patchwork-bot+netdevbpf@kernel ... | Date | Wed, 18 Oct 2023 01:10:22 +0000 |
| |
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>:
On Mon, 16 Oct 2023 18:42:42 +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 both hi.data.modename and hi.data.drivername to be > NUL-terminated based on its usage with sprintf: > | sprintf(hi.data.modename, "%sclk,%smodem,fclk=%d,bps=%d%s", > | bc->cfg.intclk ? "int" : "ext", > | bc->cfg.extmodem ? "ext" : "int", bc->cfg.fclk, bc->cfg.bps, > | bc->cfg.loopback ? ",loopback" : ""); > > [...]
Here is the summary with links: - [v2] hamradio: replace deprecated strncpy with strscpy_pad https://git.kernel.org/netdev/net-next/c/d4b14c1da5bf
You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html
| |