From 6d29a0e99b6bb07b2c5b26382cf9e0526b519a93 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 1 Apr 2024 15:11:59 -0600 Subject: [PATCH] amend b96d556451b3 by using g_alloca() rather than non-standard variable-size array --- libs/ardour/lv2_plugin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc index 8c12a6b6b4..a8619d079d 100644 --- a/libs/ardour/lv2_plugin.cc +++ b/libs/ardour/lv2_plugin.cc @@ -1856,7 +1856,7 @@ LV2Plugin::write_to(RingBuffer* 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;