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:
Daniel Mack 2009-06-01 21:36:25 +02:00 committed by Takashi Iwai
parent 9318dce503
commit d3873a1be9
1 changed files with 2 additions and 2 deletions

View File

@ -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, ",