Re: [PATCH] RDMA/irdma: replace deprecated strncpy
From: Leon Romanovsky
Date: Fri Sep 22 2023 - 06:29:53 EST
On Thu, 21 Sep 2023 07:36:26 +0000, Justin Stitt 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.
>
> A suitable replacement is `strscpy_pad` due to the fact that it
> guarantees NUL-termination on the destination buffer.
>
> [...]
Applied, thanks!
[1/1] RDMA/irdma: replace deprecated strncpy
https://git.kernel.org/rdma/rdma/c/f0cc82ca116f5b
Best regards,
--
Leon Romanovsky <leon@xxxxxxxxxx>