projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9318dce
)
ALSA: snd_usb_caiaq: use strlcpy
author
Daniel Mack
<daniel@caiaq.de>
Mon, 1 Jun 2009 19:36:25 +0000
(21:36 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 2 Jun 2009 07:41:16 +0000
(09:41 +0200)
Signed-off-by: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/caiaq/device.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/usb/caiaq/device.c
b/sound/usb/caiaq/device.c
index 9be0f2ef041374224f5f22585cd5d2557904a468..d06d7fcbb8e8f0f938ef359e3c22f73d26fe7290 100644
(file)
--- 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';
- str
cpy(card->driver, MODNAME
);
- str
cpy(card->shortname, dev->product_name
);
+ str
lcpy(card->driver, MODNAME, sizeof(card->driver)
);
+ str
lcpy(card->shortname, dev->product_name, sizeof(card->shortname)
);
len = snprintf(card->longname, sizeof(card->longname),
"%s %s (serial %s, ",