amend b96d556451
by using g_alloca() rather than non-standard variable-size array
This commit is contained in:
parent
b96d556451
commit
6d29a0e99b
@ -1856,7 +1856,7 @@ LV2Plugin::write_to(RingBuffer<uint8_t>* dest,
|
||||
return false;
|
||||
}
|
||||
|
||||
uint8_t buf[buf_size];
|
||||
uint8_t* buf = (uint8_t*) g_alloca (sizeof (uint8_t) * buf_size);
|
||||
UIMessage* msg = (UIMessage*)&buf[0];
|
||||
msg->index = index;
|
||||
msg->protocol = protocol;
|
||||
|
Loading…
Reference in New Issue
Block a user