aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Blum <[email protected]>2025-06-30 10:54:18 +0000
committerTakashi Iwai <[email protected]>2025-06-30 12:07:42 +0000
commit90c8c31e19d4fe659dc38e537f241e79266ff478 (patch)
tree0d6f2bc217a9990497304398fb6d149f30c3ab3c
parentALSA: hda: Handle the jack polling always via a work (diff)
downloadkernel-90c8c31e19d4fe659dc38e537f241e79266ff478.tar.gz
kernel-90c8c31e19d4fe659dc38e537f241e79266ff478.zip
ALSA: timer: 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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
-rw-r--r--sound/core/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 8072183c33d3..3ce12264eed8 100644
--- a/sound/core/timer.c
+++ b/sound/core/timer.c
@@ -1195,7 +1195,7 @@ static int snd_timer_register_system(void)
err = snd_timer_global_new("system", SNDRV_TIMER_GLOBAL_SYSTEM, &timer);
if (err < 0)
return err;
- strcpy(timer->name, "system timer");
+ strscpy(timer->name, "system timer");
timer->hw = snd_timer_system;
priv = kzalloc(sizeof(*priv), GFP_KERNEL);
if (priv == NULL) {