lkml.org 
[lkml]   [2021]   [Jun]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] docs: networking: Replace strncpy() with strscpy()
Date
Kees Cook <keescook@chromium.org> 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@chromium.org>
> ---
> 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

\
 
 \ /
  Last update: 2021-06-04 19:22    [W:0.077 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site