Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: intel-hdmi-audio: Replace deprecated strcpy() with strscpy()

strcpy() is deprecated; use strscpy() instead.

No functional changes intended.

Link: https://github.com/KSPP/linux/issues/88
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250509162930.171047-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Thorsten Blum and committed by
Takashi Iwai
b95a1e89 f95e4b63

+4 -3
+4 -3
sound/x86/intel_hdmi_audio.c
··· 22 22 #include <linux/pm_runtime.h> 23 23 #include <linux/dma-mapping.h> 24 24 #include <linux/delay.h> 25 + #include <linux/string.h> 25 26 #include <sound/core.h> 26 27 #include <sound/asoundef.h> 27 28 #include <sound/pcm.h> ··· 1699 1698 card_ctx = card->private_data; 1700 1699 card_ctx->dev = &pdev->dev; 1701 1700 card_ctx->card = card; 1702 - strcpy(card->driver, INTEL_HAD); 1703 - strcpy(card->shortname, "Intel HDMI/DP LPE Audio"); 1704 - strcpy(card->longname, "Intel HDMI/DP LPE Audio"); 1701 + strscpy(card->driver, INTEL_HAD); 1702 + strscpy(card->shortname, "Intel HDMI/DP LPE Audio"); 1703 + strscpy(card->longname, "Intel HDMI/DP LPE Audio"); 1705 1704 1706 1705 card_ctx->irq = -1; 1707 1706