mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix allocation on darwin absolute_path_from_handle
This commit is contained in:
@@ -596,7 +596,7 @@ absolute_path_from_handle :: proc(fd: Handle) -> (string, Errno) {
|
|||||||
return "", Errno(get_last_error())
|
return "", Errno(get_last_error())
|
||||||
}
|
}
|
||||||
|
|
||||||
path := strings.clone_from_cstring(cstring(&buf[0]), context.temp_allocator)
|
path := strings.clone_from_cstring(cstring(&buf[0]))
|
||||||
return path, ERROR_NONE
|
return path, ERROR_NONE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user