docs: networking: Replace strncpy() with strscpy()
authorKees Cook <keescook@chromium.org>
Wed, 2 Jun 2021 20:29:14 +0000 (13:29 -0700)
committerJonathan Corbet <corbet@lwn.net>
Fri, 4 Jun 2021 17:21:43 +0000 (11:21 -0600)
commitf9ce26c56d37fa6d32f700dfc77f4ceb445ce215
treec568a0bfd717affc70d4d1b7892c1218dd0a5f58
parent709dedfdf3daa8719240ecff1c0b70b278005386
docs: networking: Replace strncpy() with strscpy()

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>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://lore.kernel.org/r/20210602202914.4079123-1-keescook@chromium.org
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/input/joydev/joystick-api.rst
Documentation/networking/packet_mmap.rst
Documentation/networking/tuntap.rst