File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 16
16
#include <linux/module.h>
17
17
#include <linux/platform_device.h>
18
18
#include <linux/mutex.h>
19
+ #include <linux/string.h>
19
20
#include <linux/types.h>
20
21
#include <linux/io.h>
21
22
@@ -589,7 +590,7 @@ static int atmel_ac97c_pcm_new(struct atmel_ac97c *chip)
589
590
590
591
pcm -> private_data = chip ;
591
592
pcm -> info_flags = 0 ;
592
- strcpy (pcm -> name , chip -> card -> shortname );
593
+ strscpy (pcm -> name , chip -> card -> shortname );
593
594
chip -> pcm = pcm ;
594
595
595
596
return 0 ;
@@ -748,9 +749,9 @@ static int atmel_ac97c_probe(struct platform_device *pdev)
748
749
749
750
spin_lock_init (& chip -> lock );
750
751
751
- strcpy (card -> driver , "Atmel AC97C" );
752
- strcpy (card -> shortname , "Atmel AC97C" );
753
- sprintf (card -> longname , "Atmel AC97 controller" );
752
+ strscpy (card -> driver , "Atmel AC97C" );
753
+ strscpy (card -> shortname , "Atmel AC97C" );
754
+ strscpy (card -> longname , "Atmel AC97 controller" );
754
755
755
756
chip -> card = card ;
756
757
chip -> pclk = pclk ;
You can’t perform that action at this time.
0 commit comments