Skip to content

Commit b95a1e8

Browse files
tobluxtiwai
authored andcommitted
ALSA: intel-hdmi-audio: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated; use strscpy() instead. No functional changes intended. Link: KSPP#88 Signed-off-by: Thorsten Blum <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent f95e4b6 commit b95a1e8

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

sound/x86/intel_hdmi_audio.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/pm_runtime.h>
2323
#include <linux/dma-mapping.h>
2424
#include <linux/delay.h>
25+
#include <linux/string.h>
2526
#include <sound/core.h>
2627
#include <sound/asoundef.h>
2728
#include <sound/pcm.h>
@@ -1698,9 +1699,9 @@ static int __hdmi_lpe_audio_probe(struct platform_device *pdev)
16981699
card_ctx = card->private_data;
16991700
card_ctx->dev = &pdev->dev;
17001701
card_ctx->card = card;
1701-
strcpy(card->driver, INTEL_HAD);
1702-
strcpy(card->shortname, "Intel HDMI/DP LPE Audio");
1703-
strcpy(card->longname, "Intel HDMI/DP LPE Audio");
1702+
strscpy(card->driver, INTEL_HAD);
1703+
strscpy(card->shortname, "Intel HDMI/DP LPE Audio");
1704+
strscpy(card->longname, "Intel HDMI/DP LPE Audio");
17041705

17051706
card_ctx->irq = -1;
17061707

0 commit comments

Comments
 (0)