us428control - Fix array overflow

Fix the array overflow in accessing Vol[],
   Cus428State.cc:257:32: warning: array subscript is above array bounds

Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
Takashi Iwai 2009-06-08 11:48:45 +02:00
parent be542131ef
commit 88343d7989

View file

@ -253,7 +253,7 @@ void Cus428State::KnobChangedTo(eKnobs K, bool V)
LightSend();
if (StateInputMonitor()) {
if (LightIs(eL_Solo)) {
for (int i = 0; i < 8; ++i) {
for (int i = 0; i < 5; ++i) {
usX2Y_volume V = Volume[i];
if (!LightIs(eL_Mute0 + i) || (MuteInputMonitor & (1 << i)))
V.LH = V.LL = V.RL = V.RH = 0;