From: Brendan Hansen Date: Thu, 26 May 2022 17:27:16 +0000 (-0500) Subject: actually fixed the windows process spawn bug X-Git-Url: https://git.brendanfh.com/?a=commitdiff_plain;h=d3a5c902fefdf864931b7e28dc9b6eaa81a8d83e;p=onyx.git actually fixed the windows process spawn bug --- diff --git a/src/onyx_runtime.c b/src/onyx_runtime.c index 412e6be8..5c76d47f 100644 --- a/src/onyx_runtime.c +++ b/src/onyx_runtime.c @@ -628,7 +628,9 @@ ONYX_DEF(__process_spawn, (WASM_I32, WASM_I32, WASM_I32, WASM_I32, WASM_I32, WAS // CLEANUP CLEANUP CLEANUP: This is so freaking bad... char cmdLine[2048]; memset(cmdLine, 0, 2048); + strncat(cmdLine, "\"", 2047); strncat(cmdLine, process_path, 2047); + strncat(cmdLine, "\"", 2047); byte_t* array_loc = ONYX_PTR(args_ptr); fori (i, 0, args_len) {