ALSA: timer: Replace deprecated strcpy() with strscpy()
PATCH 1/1 ALSA: timer: Replace deprecated strcpy() with strscpy()
strcpy() is deprecated; use strscpy() instead.
No functional changes intended.
Signed-off-by Thorsten Blum <[email protected]>
--- sound/core/timer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
sound/core/timer.c +1 -1
@@ -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 ) {
Signature · 1 line
2.49.0
Quoted 7 lines · Thorsten Blum
strcpy()is deprecated; usestrscpy()instead.No functional changes intended.
Signed-off-by Thorsten Blum <[email protected]>
Applied now. Thanks.
Takashi