summaryrefslogtreecommitdiff
path: root/scripts/lib
diff options
context:
space:
mode:
authorThorsten Blum <thorsten.blum@linux.dev>2025-08-10 23:41:05 +0200
committerMark Brown <broonie@kernel.org>2025-08-12 12:05:56 +0100
commitdcb82900b12f5809e66835918d4043284ce1d39c (patch)
tree013befaf7bb7c4de42e9e4982d9e97a0009151af /scripts/lib
parentb11f2a9745401d9ccc51c91b5482044d2ea936e8 (diff)
ASoC: codecs: Call strscpy() with correct size argument
In aw8xxxx_profile_info(), strscpy() is called with the length of the source string "null" rather than the size of the destination buffer. This is fine as long as the destination buffer is larger than the source string, but we should still use the destination buffer size instead to call strscpy() as intended. And since 'name' points to the fixed-size buffer 'uinfo->value.enumerated.name', we can safely omit the size argument and let strscpy() infer it using sizeof() and remove 'name'. Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev> Link: https://patch.msgid.link/20250810214144.1985-2-thorsten.blum@linux.dev Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/lib')
0 files changed, 0 insertions, 0 deletions