git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ALSA: Limit the fallback card id string size
[pandora-kernel.git]
/
sound
/
core
/
init.c
diff --git
a/sound/core/init.c
b/sound/core/init.c
index
01a8938
..
1351f22
100644
(file)
--- a/
sound/core/init.c
+++ b/
sound/core/init.c
@@
-597,7
+597,7
@@
static void snd_card_set_id_no_lock(struct snd_card *card, const char *src,
/* last resort... */
snd_printk(KERN_ERR "unable to set card id (%s)\n", id);
if (card->proc_root->name)
- str
cpy(card->id, card->proc_root->name
);
+ str
lcpy(card->id, card->proc_root->name, sizeof(card->id)
);
}
/**