diff --git a/miditones.c b/miditones.c index 1d62585..2efca15 100644 --- a/miditones.c +++ b/miditones.c @@ -838,7 +838,7 @@ void find_note (int tracknum) { } if (event == 0xff) { /* meta-event */ meta_cmd = *t->trkptr++; - meta_length = *t->trkptr++; + meta_length = get_varlen (&t->trkptr); switch (meta_cmd) { case 0x00: if (logparse)