mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Merge pull request #2009 from rasa-silva/fix_path_clone_macos
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