mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-01 12:18:15 +00:00
fix: another itoa() used in path_linux.odin had to be replaced with write_int()
This commit is contained in:
@@ -199,7 +199,7 @@ _get_full_path :: proc(fd: linux.Fd, allocator: runtime.Allocator) -> (fullpath:
|
|||||||
buf: [32]u8
|
buf: [32]u8
|
||||||
copy(buf[:], PROC_FD_PATH)
|
copy(buf[:], PROC_FD_PATH)
|
||||||
|
|
||||||
strconv.itoa(buf[len(PROC_FD_PATH):], int(fd))
|
strconv.write_int(buf[len(PROC_FD_PATH):], i64(fd), 10)
|
||||||
|
|
||||||
if fullpath, err = _read_link_cstr(cstring(&buf[0]), allocator); err != nil || fullpath[0] != '/' {
|
if fullpath, err = _read_link_cstr(cstring(&buf[0]), allocator); err != nil || fullpath[0] != '/' {
|
||||||
delete(fullpath, allocator)
|
delete(fullpath, allocator)
|
||||||
|
|||||||
Reference in New Issue
Block a user