mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
os_linux.odin was using itoa, changed to use write_int()
This commit is contained in:
@@ -908,7 +908,7 @@ _dup :: proc(fd: Handle) -> (Handle, Error) {
|
|||||||
@(require_results)
|
@(require_results)
|
||||||
absolute_path_from_handle :: proc(fd: Handle) -> (string, Error) {
|
absolute_path_from_handle :: proc(fd: Handle) -> (string, Error) {
|
||||||
buf : [256]byte
|
buf : [256]byte
|
||||||
fd_str := strconv.itoa( buf[:], cast(int)fd )
|
fd_str := strconv.write_int( buf[:], cast(int)fd, 10 )
|
||||||
|
|
||||||
procfs_path := strings.concatenate( []string{ "/proc/self/fd/", fd_str } )
|
procfs_path := strings.concatenate( []string{ "/proc/self/fd/", fd_str } )
|
||||||
defer delete(procfs_path)
|
defer delete(procfs_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user