summaryrefslogtreecommitdiffstats
path: root/otherlibs/win32unix/write.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/win32unix/write.c')
-rw-r--r--otherlibs/win32unix/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/win32unix/write.c b/otherlibs/win32unix/write.c
index ed09e2b74..4864ea7aa 100644
--- a/otherlibs/win32unix/write.c
+++ b/otherlibs/win32unix/write.c
@@ -33,7 +33,7 @@ value unix_write(value fd, value buf, value vofs, value vlen) /* ML */
written = 0;
while (len > 0) {
numbytes = len > UNIX_BUFFER_SIZE ? UNIX_BUFFER_SIZE : len;
- bcopy(&Byte(buf, ofs), iobuf, numbytes);
+ memmove (iobuf, &Byte(buf, ofs), numbytes);
enter_blocking_section();
ret = WriteFile(h, iobuf, numbytes, &numwritten, NULL);
leave_blocking_section();