From 18fd1fefc38c8813c412de16c01c7c1edeccb1cd Mon Sep 17 00:00:00 2001 From: Yuriy Grynevych Date: Thu, 19 Sep 2024 00:11:17 +0300 Subject: [PATCH] Update core/os/os_openbsd.odin Co-authored-by: Laytan --- core/os/os_openbsd.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/core/os/os_openbsd.odin b/core/os/os_openbsd.odin index 16d873588..62872d9dc 100644 --- a/core/os/os_openbsd.odin +++ b/core/os/os_openbsd.odin @@ -807,6 +807,7 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string) @(require_results) get_current_directory :: proc(allocator := context.allocator) -> string { + context.allocator = allocator buf := make([dynamic]u8, MAX_PATH) for { cwd := _unix_getcwd(cstring(raw_data(buf)), c.size_t(len(buf)))