Commit 52d7d788 authored by David Dykstra's avatar David Dykstra

Change the implementation of memmove in lib/compat.c to call bcopy instead

of memcpy because bcopy is guaranteed to work with overlapping memory and
memcpy is not.  Bug fix for PR#1584 in which log entries in the rsync
daemon log on Sunos 4.1.4 were garbled.
parent 23c5aef1
......@@ -72,7 +72,7 @@
#ifndef HAVE_MEMMOVE
void *memmove(void *dest, const void *src, size_t n)
{
memcpy(dest, src, n);
bcopy((char *) src, (char *) dest, n);
return dest;
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment