When I tried to run gmixer-0.98c, it kept on dying on segmentation fault.
gdb revealed that it died on line 295 in gmixer.c, when variable i had
Quick search revealed that volctrls array is only initialized for the
first 17 devices, various array buffers were allocated to SOUND_MIXER_NRDEVICES
and around that line 295, that SOUND_MIXER_NRDEVICES was also used as upper
limit in for loop.
This turned out to be problem, because in my machine that variable seems
to have value 25, so when the loop was trying to go indexes from 18 to 24,
all varialbes were uninitialized.
Fix: This patch tries to fix current and future needs, until we reach point
where SOUND_MIXER_NRDEVICES goes above 100, but even then it tries to
handle case without crashing.
over to maintainer