From d3a5c902fefdf864931b7e28dc9b6eaa81a8d83e Mon Sep 17 00:00:00 2001 From: Brendan Hansen Date: Thu, 26 May 2022 12:27:16 -0500 Subject: [PATCH] actually fixed the windows process spawn bug --- src/onyx_runtime.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- 2.25.1