From 167991ecebe30847f76c028bd501f49968271069 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 23 Mar 2014 00:17:19 +0100 Subject: [PATCH] fix mismatch typo in sizeof --- libs/evoral/src/SMF.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/evoral/src/SMF.cpp b/libs/evoral/src/SMF.cpp index 8b2d10d197..51ccda583e 100644 --- a/libs/evoral/src/SMF.cpp +++ b/libs/evoral/src/SMF.cpp @@ -318,7 +318,7 @@ SMF::append_event_delta(uint32_t delta_t, uint32_t size, const uint8_t* buf, eve /* this should be allocated by malloc(3) because libsmf will call free(3) on it */ - event->midi_buffer = (uint8_t*) malloc (sizeof (uint8_t*) * event->midi_buffer_length); + event->midi_buffer = (uint8_t*) malloc (sizeof(uint8_t) * event->midi_buffer_length); event->midi_buffer[0] = 0xff; // Meta-event event->midi_buffer[1] = 0x7f; // Sequencer-specific