projects
/
onyx.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87aee2b
)
actually fixed the windows process spawn bug
author
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 26 May 2022 17:27:16 +0000
(12:27 -0500)
committer
Brendan Hansen
<brendan.f.hansen@gmail.com>
Thu, 26 May 2022 17:27:16 +0000
(12:27 -0500)
src/onyx_runtime.c
patch
|
blob
|
history
diff --git
a/src/onyx_runtime.c
b/src/onyx_runtime.c
index 412e6be8ad23eeacf04778230c0edc113f523b37..5c76d47fedf3a3677e54efdfa11062a66527f6df 100644
(file)
--- 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) {