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

2023-09-29 Thread Kees Cook
On Fri, 22 Sep 2023 11:49:14 +, 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

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

2023-09-23 Thread Kees Cook
On Fri, Sep 22, 2023 at 11:49:14AM +, 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 >