summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorratchov <ratchov@openbsd.org>2019-05-10 04:45:47 +0000
committerratchov <ratchov@openbsd.org>2019-05-10 04:45:47 +0000
commit745acca47cbe3730d71ae21afc174e40dc11840b (patch)
treeb68a887c931bc718ab3db507534d1b325c602641
parentUse the correct length for MIDI common messages. (diff)
downloadwireguard-openbsd-745acca47cbe3730d71ae21afc174e40dc11840b.tar.xz
wireguard-openbsd-745acca47cbe3730d71ae21afc174e40dc11840b.zip
Backout latest, commited by mistake.
-rw-r--r--usr.bin/sndiod/midi.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.bin/sndiod/midi.c b/usr.bin/sndiod/midi.c
index e42487dfc32..12a79f1076e 100644
--- a/usr.bin/sndiod/midi.c
+++ b/usr.bin/sndiod/midi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: midi.c,v 1.18 2019/05/10 04:40:16 ratchov Exp $ */
+/* $OpenBSD: midi.c,v 1.19 2019/05/10 04:45:47 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -308,8 +308,7 @@ midi_in(struct midi *iep, unsigned char *idata, int icount)
iep->idx = 0;
} else if (c >= 0xf0) {
iep->msg[0] = c;
- iep->len = common_len[c >> 5];
- log_puti(iep->len);
+ iep->len = common_len[c & 7];
iep->st = c;
iep->idx = 1;
} else if (c >= 0x80) {