diff --git a/core/os/os_darwin.odin b/core/os/os_darwin.odin index 3556e833a..fc2cb8e1a 100644 --- a/core/os/os_darwin.odin +++ b/core/os/os_darwin.odin @@ -404,7 +404,7 @@ read :: proc(fd: Handle, data: []u8) -> (int, Errno) { return 0, ERROR_NONE } - bytes_read := _unix_read(fd, raw_data(slice), c.size_t(len(data))) + bytes_read := _unix_read(fd, raw_data(data), c.size_t(len(data))) if bytes_read < 0 { return -1, _get_errno(bytes_read) }