os2: fix get_executable_path() on FreeBSD including the nil-terminator

This commit is contained in:
Laytan Laats
2025-04-12 21:33:44 +02:00
parent 32c9f6d13a
commit 74a66f7794
+1 -1
View File
@@ -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
}