Explorar o código

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

Laytan Laats hai 5 meses
pai
achega
74a66f7794
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 	}
 	}
 
 
-	return string(buf[:size]), nil
+	return string(buf[:size-1]), nil
 }
 }