diff --git a/backends/midi/seq.cpp b/backends/midi/seq.cpp index ff6196738a1..b77ee579f27 100644 --- a/backends/midi/seq.cpp +++ b/backends/midi/seq.cpp @@ -148,7 +148,7 @@ void MidiDriver_SEQ::sysEx (byte *msg, uint16 length) { buf[position++] = 0xFF; buf[position++] = _device_num; buf[position++] = 0; - for (; length; --length) { + for (; length; --length, ++chr) { buf[position++] = SEQ_MIDIPUTC; buf[position++] = (unsigned char) *chr; buf[position++] = _device_num;