Fix linux

This commit is contained in:
Lucas Perlind committed 2025-05-08 17:41:03 +10:00
1 parent 190960e103
commit 1bea59ee68
2 files changed
+3

No files matched your search

+2
View File
@@ -168,6 +168,8 @@ _get_working_directory :: proc(allocator: runtime.Allocator) -> (string, Error)
}
_set_working_directory :: proc(dir: string) -> Error {
temp_allocator := get_temp_allocator(TEMP_ALLOCATOR_GUARD({}))
dir_cstr := clone_to_cstring(dir, temp_allocator) or_return
return _get_platform_error(linux.chdir(dir_cstr))
}