Thread (3 messages) flat view 3 messages, 3 authors, 2021-06-04

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

From: Jonathan Corbet <corbet@lwn.net>
Date: 2021-06-04 17:22:14
Also in: lkml

Kees Cook [off-list ref] 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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help