diff options
author | Justin Stitt <[email protected]> | 2023-09-18 05:30:15 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2023-10-05 13:34:05 +0200 |
commit | 19e3e6cdfdc73400eb68d1102cdbad4f9493f474 (patch) | |
tree | 2411a4cc19cde167d59b780c75e8573bdd5f96bb /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 2953fa030690bdca0b14ab641c8e8c1df002aa51 (diff) |
accessibility: speakup: refactor deprecated strncpy
`strncpy` is deprecated for use on NUL-terminated destination strings [1].
Let's refactor this function to just use synth_write().
Link: www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings[1]
Link: https://manpages.debian.org/testing/linux-manual-4.8/strscpy.9.en.html [2]
Link: https://github.com/KSPP/linux/issues/90
Cc: [email protected]
Signed-off-by: Justin Stitt <[email protected]>
Suggested-by: Kees Cook <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Tested-by: Samuel Thibault <[email protected]>
Link: https://lore.kernel.org/r/20230918-strncpy-drivers-accessibility-speakup-kobjects-c-v2-1-d5b1976c5dbf@google.com
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions