diff options
Diffstat (limited to 'backends/midi/camd.cpp')
-rw-r--r-- | backends/midi/camd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/midi/camd.cpp b/backends/midi/camd.cpp index bab047746b..24d211281c 100644 --- a/backends/midi/camd.cpp +++ b/backends/midi/camd.cpp @@ -115,9 +115,9 @@ void MidiDriver_CAMD::send(uint32 b) { } void MidiDriver_CAMD::sysEx(const byte *msg, uint16 length) { - unsigned char buf[256]; + unsigned char buf[266]; - assert(length + 2 <= 256); + assert(length + 2 <= ARRAYSIZE(buf)); // Add SysEx frame buf[0] = 0xF0; |