From 35f0dcbb92f2586a8708c8197fa4d61f17830e74 Mon Sep 17 00:00:00 2001 From: Yuriy Grynevych Date: Thu, 19 Sep 2024 00:11:00 +0300 Subject: [PATCH] Update core/os/os_freebsd.odin Co-authored-by: Laytan --- core/os/os_freebsd.odin | 1 + 1 file changed, 1 insertion(+) diff --git a/core/os/os_freebsd.odin b/core/os/os_freebsd.odin index 9bf8ee50f..f617cf973 100644 --- a/core/os/os_freebsd.odin +++ b/core/os/os_freebsd.odin @@ -841,6 +841,7 @@ get_env :: proc(key: string, allocator := context.allocator) -> (value: string) @(require_results) get_current_directory :: proc(allocator := context.allocator) -> string { + context.allocator = allocator // NOTE(tetra): I would use PATH_MAX here, but I was not able to find // an authoritative value for it across all systems. // The largest value I could find was 4096, so might as well use the page size.