[core/os] get_current_directory: Add allocator arg to targets where its missing

This commit is contained in:
Yuriy Grynevych committed 2024-09-18 21:03:48 +03:00
1 parent 8814170edf
commit 4ff836609c
5 files changed
+5 -5

No files matched your search

+1 -1
View File
@@ -1095,7 +1095,7 @@ unset_env :: proc(key: string) -> Error {
}
@(require_results)
get_current_directory :: proc() -> string {
get_current_directory :: proc(allocator := context.allocator) -> string {
page_size := get_page_size() // NOTE(tetra): See note in os_linux.odin/get_current_directory.
buf := make([dynamic]u8, page_size)
for {