summaryrefslogtreecommitdiff
path: root/sound/hda/controllers/intel.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-07-11 10:30:50 +0200
committerTakashi Iwai <tiwai@suse.de>2025-07-11 13:36:20 +0200
commit0bdbce25855f021187d16d4ffbb92102b9f13788 (patch)
treecd1ba6458c6b635174b18a0a52f234ab719e7cf4 /sound/hda/controllers/intel.c
parent0c8e393941d25ea13a659f184c6dc76194a473b5 (diff)
ALSA: hda: Use safer strscpy() instead of strcpy()
Use a safer function strscpy() instead of strcpy() for copying to arrays. Only idiomatic code replacement, and no functional changes. Link: https://patch.msgid.link/20250711083051.18759-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/controllers/intel.c')
-rw-r--r--sound/hda/controllers/intel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/hda/controllers/intel.c b/sound/hda/controllers/intel.c
index ebfc999156f4..32bfd92d817f 100644
--- a/sound/hda/controllers/intel.c
+++ b/sound/hda/controllers/intel.c
@@ -2024,7 +2024,7 @@ static int azx_first_init(struct azx *chip)
if (azx_acquire_irq(chip, 0) < 0)
return -EBUSY;
- strcpy(card->driver, "HDA-Intel");
+ strscpy(card->driver, "HDA-Intel");
strscpy(card->shortname, driver_short_names[chip->driver_type],
sizeof(card->shortname));
snprintf(card->longname, sizeof(card->longname),