]> git.baikalelectronics.ru Git - kernel.git/commit
docs: stop suggesting strlcpy
authorStephen Kitt <steve@sk2.org>
Thu, 13 Jun 2019 16:25:48 +0000 (18:25 +0200)
committerJonathan Corbet <corbet@lwn.net>
Thu, 20 Jun 2019 20:08:49 +0000 (14:08 -0600)
commite99a5220ad877c5b244f2658e790e5561e7fb427
treed757901fe1d8644d050a3c8afda801b8f75795d9
parenta734cec4c61760d815569733bed3428069486b12
docs: stop suggesting strlcpy

Since strlcpy is deprecated, the documentation shouldn't suggest using
it. This patch fixes the examples to use strscpy instead. It also uses
sizeof instead of underlying constants as far as possible, to simplify
future changes to the corresponding data structures.

Signed-off-by: Stephen Kitt <steve@sk2.org>
Acked-by: Kees Cook <keescook@chromium.org>
Acked-by: Federico Vaga <federico.vaga@vaga.pv.it>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/hid/hid-transport.txt
Documentation/i2c/instantiating-devices
Documentation/i2c/upgrading-clients
Documentation/kernel-hacking/locking.rst
Documentation/translations/it_IT/kernel-hacking/locking.rst