projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90c8c31
)
ALSA: hrtimer: Replace deprecated strcpy() with strscpy()
author
Thorsten Blum
<thorsten.blum@linux.dev>
Mon, 30 Jun 2025 10:57:22 +0000
(12:57 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Mon, 30 Jun 2025 12:08:07 +0000
(14:08 +0200)
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/20250630105723.1703-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/hrtimer.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/core/hrtimer.c
b/sound/core/hrtimer.c
index e9c60dce59fbfabcbf799450c8ca85d49fc2896c..c364bd126ac8b311e3ce899e226ff9fd82c4485f 100644
(file)
--- a/
sound/core/hrtimer.c
+++ b/
sound/core/hrtimer.c
@@
-6,6
+6,7
@@
#include <linux/init.h>
#include <linux/slab.h>
+#include <linux/string.h>
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/hrtimer.h>
@@
-138,7
+139,7
@@
static int __init snd_hrtimer_init(void)
return err;
timer->module = THIS_MODULE;
- strcpy(timer->name, "HR timer");
+ str
s
cpy(timer->name, "HR timer");
timer->hw = hrtimer_hw;
timer->hw.resolution = resolution;
timer->hw.ticks = NANO_SEC / resolution;