[alsa-devel] [PATCH 3/5] ALSA: snd_usb_caiaq: use strlcpy
Daniel Mack
daniel at caiaq.de
Mon Jun 1 21:36:25 CEST 2009
Signed-off-by: Daniel Mack <daniel at caiaq.de>
---
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 7fdecde..7bfe3ae 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)
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));
/* fill card->id with a shortened version of the product string
* which does not contain any whitespaces */
--
1.6.3.1
More information about the Alsa-devel
mailing list