From 52d7d78865a5478cffdc0e51ff0f1e7a6aee373e Mon Sep 17 00:00:00 2001 From: David Dykstra Date: Fri, 12 Feb 1999 17:27:22 +0000 Subject: [PATCH] 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. --- lib/compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.34.1