diff options
Diffstat (limited to 'otherlibs/unix/write.c')
-rw-r--r-- | otherlibs/unix/write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/unix/write.c b/otherlibs/unix/write.c index e154f80b6..b887f213c 100644 --- a/otherlibs/unix/write.c +++ b/otherlibs/unix/write.c @@ -38,7 +38,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 = write(Int_val(fd), iobuf, numbytes); leave_blocking_section(); |