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.
This commit is contained in:
David Dykstra committed 1999-02-12 17:27:22 +00:00
1 parent 23c5aef18e
commit 52d7d78865
1 file changed
+1 -1
+1 -1
View File
@@ -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