mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-13 01:21:38 -07: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 string(buf[:size]), nil
|
||||
return string(buf[:size-1]), nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user