actually fixed the windows process spawn bug
authorBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 26 May 2022 17:27:16 +0000 (12:27 -0500)
committerBrendan Hansen <brendan.f.hansen@gmail.com>
Thu, 26 May 2022 17:27:16 +0000 (12:27 -0500)
src/onyx_runtime.c

index 412e6be8ad23eeacf04778230c0edc113f523b37..5c76d47fedf3a3677e54efdfa11062a66527f6df 100644 (file)
@@ -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) {