adplug: Fix out-of-bounds access.
Found with cppcheck.