diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2024-04-05 12:09:22 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-04-05 15:13:06 +0300 |
commit | 47714847592b574ff594ceca7ebe0ada70dbac3c (patch) | |
tree | 54a30eb7091971777bf603d0a3320884d52de0f4 /sound/soc/intel/avs/pcm.c | |
parent | 9d2e26f31c7cc3fa495c423af9b4902ec0dc7be3 (diff) | |
download | linux-47714847592b574ff594ceca7ebe0ada70dbac3c.tar.xz |
ASoC: Intel: avs: Replace risky functions with safer variants
strscpy() and snprintf() are the recommended equivalents of their
riskier friends.
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://msgid.link/r/20240405090929.1184068-7-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/avs/pcm.c')
-rw-r--r-- | sound/soc/intel/avs/pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/avs/pcm.c b/sound/soc/intel/avs/pcm.c index 72f1bc3b7b1f..405de1d58178 100644 --- a/sound/soc/intel/avs/pcm.c +++ b/sound/soc/intel/avs/pcm.c @@ -1420,7 +1420,7 @@ static void avs_component_hda_unregister_dais(struct snd_soc_component *componen mach = dev_get_platdata(component->card->dev); codec = mach->pdata; - sprintf(name, "%s-cpu", dev_name(&codec->core.dev)); + snprintf(name, sizeof(name), "%s-cpu", dev_name(&codec->core.dev)); for_each_component_dais_safe(component, dai, save) { int stream; |