Merge pull request #2289 from Lperlind/staging/fix_os_args

Fix out of range error with _alloc_command_line_arguments in darwin
This commit is contained in:
gingerBill
2023-06-07 12:06:43 +01:00
committed by GitHub

View File

@@ -965,8 +965,8 @@ _processor_core_count :: proc() -> int {
_alloc_command_line_arguments :: proc() -> []string {
res := make([]string, len(runtime.args__))
for arg, i in runtime.args__ {
res[i] = string(arg)
for _, i in res {
res[i] = string(runtime.args__[i])
}
return res
}