浏览代码

Update core/os/os_openbsd.odin

Co-authored-by: Laytan <[email protected]>
Yuriy Grynevych 1 年之前
父节点
当前提交
18fd1fefc3
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      core/os/os_openbsd.odin

+ 1 - 0
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)))