From: David Dykstra Date: Fri, 12 Feb 1999 17:27:22 +0000 (+0000) Subject: Change the implementation of memmove in lib/compat.c to call bcopy instead X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/commitdiff_plain/52d7d78865a5478cffdc0e51ff0f1e7a6aee373e 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. --- diff --git a/lib/compat.c b/lib/compat.c index 9b411cda..1bf46b9c 100644 --- a/lib/compat.c +++ b/lib/compat.c @@ -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