From 47235d44e73953d259566b99428a50a70636ee4b Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jeremy@system76.com> Date: Mon, 21 Jan 2019 20:38:31 -0700 Subject: [PATCH] Fix change of sockaddr member sa_data on Redox --- src/platform/redox/socket.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform/redox/socket.rs b/src/platform/redox/socket.rs index 7a1b61031..5914792e2 100644 --- a/src/platform/redox/socket.rs +++ b/src/platform/redox/socket.rs @@ -84,8 +84,8 @@ unsafe fn inner_get_name( trace!("path: {}", ::core::str::from_utf8_unchecked(&part)); let data = slice::from_raw_parts_mut( - &mut (*address).data as *mut _ as *mut u8, - (*address).data.len(), + &mut (*address).sa_data as *mut _ as *mut u8, + (*address).sa_data.len(), ); let len = data.len().min(part.len()); -- GitLab