diff options
author | justinstitt@google.com <justinstitt@google.com> | 2023-07-25 22:08:38 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2023-07-26 12:49:44 +0100 |
commit | f6500ec12c1ec745fbec20fd4734b832bbfd4aac (patch) | |
tree | 1353d43be51a4bf598416e45189b184cae9071de /init/version-timestamp.c | |
parent | 5bdeb6f5c7b94f653183f08eca8a08022b2efac6 (diff) |
ASoC: intel: avs: refactor strncpy usage in topology
`strncpy` is deprecated for use on NUL-terminated destination strings
[1].
A suitable replacement is `strscpy` [2].
There are some hopes that someday the `strncpy` api could be ripped out
due to the vast number of suitable replacements (strscpy, strscpy_pad,
strtomem, strtomem_pad, strlcpy) [1].
[1]: www.kernel.org/doc/html/latest/process/deprecated.html#strncpy-on-nul-terminated-strings
[2]: manpages.debian.org/testing/linux-manual-4.8/strscpy.9.en.html
Link: https://github.com/KSPP/linux/issues/90
Signed-off-by: Justin Stitt <justinstitt@google.com>
Link: https://lore.kernel.org/r/20230725-sound-soc-intel-avs-remove-deprecated-strncpy-v1-1-6357a1f8e9cf@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'init/version-timestamp.c')
0 files changed, 0 insertions, 0 deletions