aboutsummaryrefslogtreecommitdiffstats
path: root/lib/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/client.c')
-rw-r--r--lib/client.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/client.c b/lib/client.c
index f1c4da1..d101223 100644
--- a/lib/client.c
+++ b/lib/client.c
@@ -6,6 +6,7 @@
* SPDX-License-Identifier: MIT
*/
+#include <alloca.h>
#include "private.h"
#include "protocol.h"
#include "sender.h"
@@ -50,7 +51,7 @@ bool icipc_client_send_request(
return false;
const size_t size = icipc_protocol_calculate_request_size(name, args);
- uint8_t buffer[size];
+ uint8_t *buffer = alloca(size);
icipc_protocol_build_request(buffer, size, name, args);
return icipc_sender_send(base, buffer, size, reply, data);
}