mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-29 05:40:25 -04:00
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:
parent
be542131ef
commit
88343d7989
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ void Cus428State::KnobChangedTo(eKnobs K, bool V)
|
||||||
LightSend();
|
LightSend();
|
||||||
if (StateInputMonitor()) {
|
if (StateInputMonitor()) {
|
||||||
if (LightIs(eL_Solo)) {
|
if (LightIs(eL_Solo)) {
|
||||||
for (int i = 0; i < 8; ++i) {
|
for (int i = 0; i < 5; ++i) {
|
||||||
usX2Y_volume V = Volume[i];
|
usX2Y_volume V = Volume[i];
|
||||||
if (!LightIs(eL_Mute0 + i) || (MuteInputMonitor & (1 << i)))
|
if (!LightIs(eL_Mute0 + i) || (MuteInputMonitor & (1 << i)))
|
||||||
V.LH = V.LL = V.RL = V.RH = 0;
|
V.LH = V.LL = V.RL = V.RH = 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue