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: oss-mixer - use strlcpy() instead strcpy()
[pandora-kernel.git]
/
sound
/
core
/
oss
/
mixer_oss.c
diff --git
a/sound/core/oss/mixer_oss.c
b/sound/core/oss/mixer_oss.c
index
d8359cf
..
1b5e0c4
100644
(file)
--- a/
sound/core/oss/mixer_oss.c
+++ b/
sound/core/oss/mixer_oss.c
@@
-499,7
+499,7
@@
static struct snd_kcontrol *snd_mixer_oss_test_id(struct snd_mixer_oss *mixer, c
memset(&id, 0, sizeof(id));
id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
memset(&id, 0, sizeof(id));
id.iface = SNDRV_CTL_ELEM_IFACE_MIXER;
- str
cpy(id.name, name
);
+ str
lcpy(id.name, name, sizeof(id.name)
);
id.index = index;
return snd_ctl_find_id(card, &id);
}
id.index = index;
return snd_ctl_find_id(card, &id);
}