diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-06-01 15:36:25 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-02 03:41:16 -0400 |
commit | d3873a1be9f2d497e9ff013e4a83a2a4d9f1d22d (patch) | |
tree | b2c42a0a0733c90a9e7206d909cdcf8ecd28ac43 /sound/usb | |
parent | 9318dce5038f193f46091b80c61928395a4139b7 (diff) |
ALSA: snd_usb_caiaq: use strlcpy
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r-- | sound/usb/caiaq/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/usb/caiaq/device.c b/sound/usb/caiaq/device.c index 9be0f2ef0413..d06d7fcbb8e8 100644 --- a/sound/usb/caiaq/device.c +++ b/sound/usb/caiaq/device.c | |||
@@ -432,8 +432,8 @@ static int __devinit init_card(struct snd_usb_caiaqdev *dev) | |||
432 | if (c) | 432 | if (c) |
433 | *c = '\0'; | 433 | *c = '\0'; |
434 | 434 | ||
435 | strcpy(card->driver, MODNAME); | 435 | strlcpy(card->driver, MODNAME, sizeof(card->driver)); |
436 | strcpy(card->shortname, dev->product_name); | 436 | strlcpy(card->shortname, dev->product_name, sizeof(card->shortname)); |
437 | 437 | ||
438 | len = snprintf(card->longname, sizeof(card->longname), | 438 | len = snprintf(card->longname, sizeof(card->longname), |
439 | "%s %s (serial %s, ", | 439 | "%s %s (serial %s, ", |