소스 검색

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

Laytan Laats 5 달 전
부모
커밋
74a66f7794
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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
 }