* [PATCH] ALSA: timer: Replace deprecated strcpy() with strscpy()
@ 2025-06-30 10:54 Thorsten Blum
2025-06-30 12:07 ` Takashi Iwai
0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Blum @ 2025-06-30 10:54 UTC (permalink / raw)
To: Jaroslav Kysela, Takashi Iwai, Thomas Gleixner, Ingo Molnar,
Ivan Orlov, Al Viro, Jinjie Ruan
Cc: Thorsten Blum, Takashi Iwai, linux-sound, linux-kernel
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>
---
sound/core/timer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/core/timer.c b/sound/core/timer.c
index 1de4b90fd4d1..776c48a420c6 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) {
--
2.49.0
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] ALSA: timer: Replace deprecated strcpy() with strscpy()
2025-06-30 10:54 [PATCH] ALSA: timer: Replace deprecated strcpy() with strscpy() Thorsten Blum
@ 2025-06-30 12:07 ` Takashi Iwai
0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2025-06-30 12:07 UTC (permalink / raw)
To: Thorsten Blum
Cc: Jaroslav Kysela, Takashi Iwai, Thomas Gleixner, Ingo Molnar,
Ivan Orlov, Al Viro, Jinjie Ruan, Takashi Iwai, linux-sound,
linux-kernel
On Mon, 30 Jun 2025 12:54:18 +0200,
Thorsten Blum wrote:
>
> 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>
Applied now. Thanks.
Takashi
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-06-30 12:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-30 10:54 [PATCH] ALSA: timer: Replace deprecated strcpy() with strscpy() Thorsten Blum
2025-06-30 12:07 ` Takashi Iwai
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.