mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
os2: fix get_executable_path() on FreeBSD including the nil-terminator
This commit is contained in:
@@ -25,5 +25,5 @@ _get_executable_path :: proc(allocator: runtime.Allocator) -> (path: string, err
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
return string(buf[:size]), nil
|
return string(buf[:size-1]), nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user