summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/sendrecv.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/sendrecv.c')
-rw-r--r--otherlibs/win32unix/sendrecv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/otherlibs/win32unix/sendrecv.c b/otherlibs/win32unix/sendrecv.c
index 46ae14fa0..6e56ccd17 100644
--- a/otherlibs/win32unix/sendrecv.c
+++ b/otherlibs/win32unix/sendrecv.c
@@ -36,7 +36,7 @@ value unix_recv(value sock, value buff, value ofs, value len, value flags)
convert_flag_list(flags, msg_flag_table));
leave_blocking_section();
if (ret == -1) unix_error(WSAGetLastError(), "recv", Nothing);
- bcopy(iobuf, &Byte(buff, Long_val(ofs)), ret);
+ memmove (&Byte(buff, Long_val(ofs)), iobuf, ret);
End_roots();
return Val_int(ret);
}
@@ -62,7 +62,7 @@ value unix_recvfrom(value sock, value buff, value ofs, value len, value flags) /
&addr.s_gen, &addr_len);
leave_blocking_section();
if (ret == -1) unix_error(WSAGetLastError(), "recvfrom", Nothing);
- bcopy(iobuf, &Byte(buff, Long_val(ofs)), ret);
+ memmove (&Byte(buff, Long_val(ofs)), iobuf, ret);
adr = alloc_sockaddr(&addr, addr_len);
res = alloc_small(2, 0);
Field(res, 0) = Val_int(ret);
@@ -79,7 +79,7 @@ value unix_send(value sock, value buff, value ofs, value len, value flags) /* ML
numbytes = Long_val(len);
if (numbytes > UNIX_BUFFER_SIZE) numbytes = UNIX_BUFFER_SIZE;
- bcopy(&Byte(buff, Long_val(ofs)), iobuf, numbytes);
+ memmove (iobuf, &Byte(buff, Long_val(ofs)), numbytes);
enter_blocking_section();
ret = send((SOCKET) Handle_val(sock), iobuf, (int) numbytes,
convert_flag_list(flags, msg_flag_table));
@@ -99,7 +99,7 @@ value unix_sendto_native(value sock, value buff, value ofs, value len, value fla
get_sockaddr(dest, &addr, &addr_len);
numbytes = Long_val(len);
if (numbytes > UNIX_BUFFER_SIZE) numbytes = UNIX_BUFFER_SIZE;
- bcopy(&Byte(buff, Long_val(ofs)), iobuf, numbytes);
+ memmove (iobuf, &Byte(buff, Long_val(ofs)), numbytes);
enter_blocking_section();
ret = sendto((SOCKET) Handle_val(sock),
iobuf, (int) numbytes,