changeset 252:8ec2d05eea5d

Fix problem with ovbcopy - from Red Hat.
author gthomas
date Fri, 26 Jul 2002 15:04:01 +0000
parents c8e3659acd62
children d364b93024e5
files packages/net/bsd_tcpip/current/ChangeLog packages/net/bsd_tcpip/current/src/ecos/support.c
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/bsd_tcpip/current/ChangeLog
+++ b/packages/net/bsd_tcpip/current/ChangeLog
@@ -1,3 +1,10 @@
+2002-07-26  Gary Thomas  <gary@chez-thomas.org>
+2002-07-26  Ken Cox <jkc@redhat.com>
+
+	* src/ecos/support.c (ovbcopy): ovbcopy() must handle the case 
+	where the src and dst regions are overlayed.  memcpy() does not 
+	handle this case, but memmove() does.
+
 2002-07-10  Gary Thomas  <gary@chez-thomas.org>
 
 	* src/sys/netinet/udp_usrreq.c: 
--- a/packages/net/bsd_tcpip/current/src/ecos/support.c
+++ b/packages/net/bsd_tcpip/current/src/ecos/support.c
@@ -626,7 +626,7 @@ copyin(const void *s, void *d, size_t le
 void
 ovbcopy(const void *s, void *d, size_t len)
 {
-    memcpy(d, s, len);
+    memmove(d, s, len);
 }