mirror of
https://github.com/torvalds/linux.git
synced 2024-12-21 18:42:44 +00:00
6367dee9e3
strlcpy is marked as deprecated in Documentation/process/deprecated.rst,
and there is no functional difference when the caller expects truncation
(when not checking the return value). strscpy is relatively better as it
also avoids scanning the whole source string.
This silences the related checkpatch warnings from:
|
||
---|---|---|
.. | ||
dim2 | ||
Documentation | ||
i2c | ||
net | ||
sound | ||
video | ||
Kconfig | ||
Makefile | ||
TODO |