Re: [PATCH] isdn: kcapi: replace deprecated strncpy with strscpy_pad

From: Kees Cook
Date: Fri Sep 29 2023 - 15:37:39 EST


On Fri, 22 Sep 2023 11:49:14 +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.
>
> `buf` is used in this context as a data buffer with 64 bytes of memory
> to be occupied by capi_manufakturer.
>
> [...]

Applied to for-next/hardening, thanks!

[1/1] isdn: kcapi: replace deprecated strncpy with strscpy_pad
https://git.kernel.org/kees/c/69cee158c9b0

Take care,

--
Kees Cook