From: Brendan Hansen Date: Thu, 26 May 2022 17:19:57 +0000 (-0500) Subject: bugfix with windows process spawn X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=87aee2b3f73f0efd2cb89fa2d460fd7c6db5f037;p=onyx.git bugfix with windows process spawn --- diff --git a/src/onyx_runtime.c b/src/onyx_runtime.c index 804dfc97..412e6be8 100644 --- a/src/onyx_runtime.c +++ b/src/onyx_runtime.c @@ -635,8 +635,9 @@ ONYX_DEF(__process_spawn, (WASM_I32, WASM_I32, WASM_I32, WASM_I32, WASM_I32, WAS char *arg_str = ONYX_PTR(*(i32 *) (array_loc + i * 2 * POINTER_SIZE)); i32 arg_len = *(i32 *) (array_loc + i * 2 * POINTER_SIZE + 4); - strncat(cmdLine, " ", 2047); + strncat(cmdLine, " \"", 2047); strncat(cmdLine, arg_str, arg_len); + strncat(cmdLine, "\"", 2047); } STARTUPINFOA startup;