summaryrefslogtreecommitdiff
path: root/usr.bin/midiplay
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2005-07-28 10:59:12 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2005-07-28 10:59:12 +0000
commitae36237c64121791894fbc24be3ea9cc93a1c603 (patch)
tree2f56dc0c121cf633afb7e13d886e05d971dccce1 /usr.bin/midiplay
parentd79e4f569f48210d28b55d38fd905aa07f4ba46b (diff)
Fix bug that prevented system exclusive messages longer than 6 bytes
from working properly. From Alexandre Ratchov alex-contact at caoua.org
Diffstat (limited to 'usr.bin/midiplay')
-rw-r--r--usr.bin/midiplay/midiplay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/midiplay/midiplay.c b/usr.bin/midiplay/midiplay.c
index 4f6d456bea6..0ece9086cb2 100644
--- a/usr.bin/midiplay/midiplay.c
+++ b/usr.bin/midiplay/midiplay.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midiplay.c,v 1.6 2005/03/11 22:54:06 jmc Exp $ */
+/* $OpenBSD: midiplay.c,v 1.7 2005/07/28 10:59:11 jsg Exp $ */
/* $NetBSD: midiplay.c,v 1.8 1998/11/25 22:17:07 augustss Exp $ */
/*
@@ -240,6 +240,7 @@ send_sysex(u_char *p, u_int l)
memcpy(&event.arr[2], p, n);
send_event(&event);
l -= n;
+ p += n;
} while (l > 0);
}