We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 37d4753 commit e3a3afeCopy full SHA for e3a3afe
library/std/src/os/unix/net/addr.rs
@@ -18,7 +18,7 @@ mod libc {
18
fn sun_path_offset(addr: &libc::sockaddr_un) -> usize {
19
// Work with an actual instance of the type since using a null pointer is UB
20
let base = (addr as *const libc::sockaddr_un).addr();
21
- let path = (&addr.sun_path as *const i8).addr();
+ let path = (&addr.sun_path as *const libc::c_char).addr();
22
path - base
23
}
24
0 commit comments