summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sys/socket/addr.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/socket/addr.rs b/src/sys/socket/addr.rs
index 2ebb5d88..26d6349e 100644
--- a/src/sys/socket/addr.rs
+++ b/src/sys/socket/addr.rs
@@ -329,7 +329,7 @@ impl UnixAddr {
return Err(NixError::Sys(Errno::ENAMETOOLONG));
}
- ptr::copy_memory(
+ ptr::copy(
ret.sun_path.as_mut_ptr(),
bytes.as_ptr() as *const i8,
bytes.len());