mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-27 03:10:12 +00:00
ALSA: snd_usb_caiaq: use strlcpy
Signed-off-by: Daniel Mack <daniel@caiaq.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
9318dce503
commit
d3873a1be9
1 changed files with 2 additions and 2 deletions
|
@ -432,8 +432,8 @@ static int __devinit init_card(struct snd_usb_caiaqdev *dev)
|
|||
if (c)
|
||||
*c = '\0';
|
||||
|
||||
strcpy(card->driver, MODNAME);
|
||||
strcpy(card->shortname, dev->product_name);
|
||||
strlcpy(card->driver, MODNAME, sizeof(card->driver));
|
||||
strlcpy(card->shortname, dev->product_name, sizeof(card->shortname));
|
||||
|
||||
len = snprintf(card->longname, sizeof(card->longname),
|
||||
"%s %s (serial %s, ",
|
||||
|
|
Loading…
Reference in a new issue