fix: missing account for added whitespace

This commit is contained in:
Sven Vogel 2024-10-10 20:18:08 +02:00
parent 56cebd5742
commit 7dda7f466b
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ bool lldc_link(TargetConfig* target_config, TargetLinkConfig* link_config) {
size_t chars = 0; size_t chars = 0;
for (guint i = 0; i < arguments->len; i++) { 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); char* buffer = mem_alloc(MemoryNamespaceLld, chars + 1);