Browse Source

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

Laytan Laats 5 months ago
parent
commit
74a66f7794
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/os/os2/path_freebsd.odin

+ 1 - 1
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
 }