Re: [PATCH] docs: networking: Replace strncpy() with strscpy()

From: Jonathan Corbet
Date: Fri Jun 04 2021 - 13:22:14 EST


Kees Cook <keescook@xxxxxxxxxxxx> writes:

> Replace example code's use of strncpy() with strscpy() functions. Using
> strncpy() is considered deprecated:
> https://www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings
>
> Signed-off-by: Kees Cook <keescook@xxxxxxxxxxxx>
> ---
> Documentation/input/joydev/joystick-api.rst | 2 +-
> Documentation/networking/packet_mmap.rst | 2 +-
> Documentation/networking/tuntap.rst | 2 +-
> 3 files changed, 3 insertions(+), 3 deletions(-)

Applied, thanks.

jon