Skip to content

Commit

Permalink
advanced debugging tools
Browse files Browse the repository at this point in the history
  • Loading branch information
mlostekk committed Mar 27, 2017
1 parent e4c6e34 commit 83ebc65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/MIKMIDICommand.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ + (NSArray *)commandsWithMIDIPacket:(MIDIPacket *)inputPacket
packetType = inputPacket->data[packetIndex];
packetLength = MIKMIDIStandardLengthOfMessageForCommandType(packetType);
NSInteger dataOffset = packetIndex;
if (dataOffset > (inputPacket->length - packetLength)) break;
if (packetLength == -1 || dataOffset > (inputPacket->length - packetLength)) break;
const Byte *packetData = inputPacket->data + dataOffset;

// This is gross, but it's the only way I can find to reliably create a
Expand Down

0 comments on commit 83ebc65

Please sign in to comment.