From 2d824e48091ebff0b1f62933e92a1566c817d73e Mon Sep 17 00:00:00 2001 From: Lucas Perlind Date: Fri, 23 Dec 2022 09:37:30 +1100 Subject: [PATCH] Fix out or range error with _alloc_command_line_arguments in darwin --- core/os/os_darwin.odin | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin index b40edb410..00e76d06f 100644 --- a/core/os/os_darwin.odin +++ b/core/os/os_darwin.odin @@ -774,8 +774,8 @@ get_page_size :: 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 }