diff options
author | Thorsten Blum <thorsten.blum@linux.dev> | 2025-02-27 18:39:33 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2025-03-02 08:30:11 -0800 |
commit | 69af654bf97232cf13a3924c27eac559b6fac951 (patch) | |
tree | 86a91bb6e3f2de828280375500f02ee376d13042 /tools/perf/scripts/python/stackcollapse.py | |
parent | fafac0ebb289288c767272d600644701e0df8a76 (diff) |
hwmon: (pmbus/core) Replace deprecated strncpy() with strscpy()
strncpy() is deprecated for NUL-terminated destination buffers; use
strscpy() instead.
Compile-tested only.
Note(groeck): strscpy() uses sizeof() to determine the length of the
destination buffer if it is not provided as argument.
Link: https://github.com/KSPP/linux/issues/90
Cc: linux-hardening@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250227173936.7746-2-thorsten.blum@linux.dev
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions