summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/socketaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/socketaddr.c')
-rw-r--r--otherlibs/unix/socketaddr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/unix/socketaddr.c b/otherlibs/unix/socketaddr.c
index 1cc7a7af7..aa46f6da9 100644
--- a/otherlibs/unix/socketaddr.c
+++ b/otherlibs/unix/socketaddr.c
@@ -53,7 +53,7 @@ void get_sockaddr(value mladr,
if (len >= sizeof(adr->s_unix.sun_path)) {
unix_error(ENAMETOOLONG, "", path);
}
- bcopy(String_val(path), adr->s_unix.sun_path, (int) len + 1);
+ memmove (adr->s_unix.sun_path, String_val(path), len + 1);
*adr_len =
((char *)&(adr->s_unix.sun_path) - (char *)&(adr->s_unix))
+ len;