From 7dda7f466be11907a01cb569690dc5d74f109e05 Mon Sep 17 00:00:00 2001 From: servostar Date: Thu, 10 Oct 2024 20:18:08 +0200 Subject: [PATCH] fix: missing account for added whitespace --- src/link/lldc/lldc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/link/lldc/lldc.c b/src/link/lldc/lldc.c index 4879f23..2d6c6de 100644 --- a/src/link/lldc/lldc.c +++ b/src/link/lldc/lldc.c @@ -70,7 +70,7 @@ bool lldc_link(TargetConfig* target_config, TargetLinkConfig* link_config) { size_t chars = 0; for (guint i = 0; i < arguments->len; i++) { - chars += strlen(g_array_index(arguments, char*, i)); + chars += strlen(g_array_index(arguments, char*, i)) + 1; } char* buffer = mem_alloc(MemoryNamespaceLld, chars + 1);