diff options
Diffstat (limited to 'otherlibs/unix/read.c')
-rw-r--r-- | otherlibs/unix/read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/otherlibs/unix/read.c b/otherlibs/unix/read.c index 9efb9ccf8..eab87d344 100644 --- a/otherlibs/unix/read.c +++ b/otherlibs/unix/read.c @@ -31,7 +31,7 @@ value unix_read(value fd, value buf, value ofs, value len) /* ML */ ret = read(Int_val(fd), iobuf, (int) numbytes); leave_blocking_section(); if (ret == -1) uerror("read", Nothing); - bcopy(iobuf, &Byte(buf, Long_val(ofs)), ret); + memmove (&Byte(buf, Long_val(ofs)), iobuf, ret); End_roots(); return Val_int(ret); } |