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: hda - Use snprintf() to be safer
[pandora-kernel.git]
/
sound
/
pci
/
hda
/
patch_sigmatel.c
diff --git
a/sound/pci/hda/patch_sigmatel.c
b/sound/pci/hda/patch_sigmatel.c
index
da7f9f6
..
512f3b9
100644
(file)
--- a/
sound/pci/hda/patch_sigmatel.c
+++ b/
sound/pci/hda/patch_sigmatel.c
@@
-4066,7
+4066,7
@@
static int stac92xx_add_jack(struct hda_codec *codec,
jack->nid = nid;
jack->type = type;
- s
printf(name
, "%s at %s %s Jack",
+ s
nprintf(name, sizeof(name)
, "%s at %s %s Jack",
snd_hda_get_jack_type(def_conf),
snd_hda_get_jack_connectivity(def_conf),
snd_hda_get_jack_location(def_conf));