Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23c5aef
)
Change the implementation of memmove in lib/compat.c to call bcopy instead
author
David Dykstra
<dwd@samba.org>
Fri, 12 Feb 1999 17:27:22 +0000
(17:27 +0000)
committer
David Dykstra
<dwd@samba.org>
Fri, 12 Feb 1999 17:27:22 +0000
(17:27 +0000)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/compat.c
b/lib/compat.c
index
9b411cd
..
1bf46b9
100644
(file)
--- 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