From 74a66f7794ba5ba7b26128c9af483d9dd927fc66 Mon Sep 17 00:00:00 2001 From: Laytan Laats Date: Sat, 12 Apr 2025 21:33:44 +0200 Subject: [PATCH] os2: fix get_executable_path() on FreeBSD including the nil-terminator --- core/os/os2/path_freebsd.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/os2/path_freebsd.odin b/core/os/os2/path_freebsd.odin index 577108eca..e7e4f63c9 100644 --- a/core/os/os2/path_freebsd.odin +++ b/core/os/os2/path_freebsd.odin @@ -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 }