Skip to content

Commit cef3b81

Browse files
committed
Fixed sockaddr definition
1 parent 63a2ff7 commit cef3b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/newlib/horizon/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub type sbintime_t = ::c_longlong;
2424
s! {
2525
pub struct sockaddr {
2626
pub sa_family: ::sa_family_t,
27-
pub sa_data: *const c_char,
27+
pub sa_data: [::c_char; 26usize],
2828
}
2929

3030
pub struct sockaddr_storage {

0 commit comments

Comments
 (0)