aboutsummaryrefslogtreecommitdiffstats
path: root/sound/oss/soundcard.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/oss/soundcard.c')
-rw-r--r--sound/oss/soundcard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/oss/soundcard.c b/sound/oss/soundcard.c
index 07f803e6d203..3f420ff273f8 100644
--- a/sound/oss/soundcard.c
+++ b/sound/oss/soundcard.c
@@ -86,7 +86,7 @@ int *load_mixer_volumes(char *name, int *levels, int present)
86 int i, n; 86 int i, n;
87 87
88 for (i = 0; i < num_mixer_volumes; i++) { 88 for (i = 0; i < num_mixer_volumes; i++) {
89 if (strcmp(name, mixer_vols[i].name) == 0) { 89 if (strncmp(name, mixer_vols[i].name, 32) == 0) {
90 if (present) 90 if (present)
91 mixer_vols[i].num = i; 91 mixer_vols[i].num = i;
92 return mixer_vols[i].levels; 92 return mixer_vols[i].levels;
@@ -98,7 +98,7 @@ int *load_mixer_volumes(char *name, int *levels, int present)
98 } 98 }
99 n = num_mixer_volumes++; 99 n = num_mixer_volumes++;
100 100
101 strcpy(mixer_vols[n].name, name); 101 strncpy(mixer_vols[n].name, name, 32);
102 102
103 if (present) 103 if (present)
104 mixer_vols[n].num = n; 104 mixer_vols[n].num = n;