Skip to content

Commit

Permalink
ALSA: snd_usb_caiaq: use strlcpy
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Daniel Mack authored and Takashi Iwai committed Jun 2, 2009
1 parent 9318dce commit d3873a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/usb/caiaq/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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, ",
Expand Down

0 comments on commit d3873a1

Please sign in to comment.