mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-10 07:00:48 +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
@ -432,8 +432,8 @@ static int __devinit init_card(struct snd_usb_caiaqdev *dev)
|
|||||||
if (c)
|
if (c)
|
||||||
*c = '\0';
|
*c = '\0';
|
||||||
|
|
||||||
strcpy(card->driver, MODNAME);
|
strlcpy(card->driver, MODNAME, sizeof(card->driver));
|
||||||
strcpy(card->shortname, dev->product_name);
|
strlcpy(card->shortname, dev->product_name, sizeof(card->shortname));
|
||||||
|
|
||||||
len = snprintf(card->longname, sizeof(card->longname),
|
len = snprintf(card->longname, sizeof(card->longname),
|
||||||
"%s %s (serial %s, ",
|
"%s %s (serial %s, ",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user