summaryrefslogtreecommitdiff
path: root/libs/evoral/src/SMF.cpp
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2014-03-23 00:17:19 +0100
committerRobin Gareus <robin@gareus.org>2014-03-23 00:17:19 +0100
commit167991ecebe30847f76c028bd501f49968271069 (patch)
treef5af08bf0fca4d8c6c26ab1e4f130cf62ca0e37a /libs/evoral/src/SMF.cpp
parent679d48ee2b4f08b34481a1c59208421621bf60d1 (diff)
fix mismatch typo in sizeof
Diffstat (limited to 'libs/evoral/src/SMF.cpp')
-rw-r--r--libs/evoral/src/SMF.cpp2
1 files changed, 1 insertions, 1 deletions
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