13
0

amend b96d556451 by using g_alloca() rather than non-standard variable-size array

This commit is contained in:
Paul Davis 2024-04-01 15:11:59 -06:00
parent b96d556451
commit 6d29a0e99b

View File

@ -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;