Socket/Protocols: Fix BSDSocketAddress self-assignment
g0dil [Thu, 26 Mar 2009 22:15:29 +0000 (22:15 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1170 270642c3-0616-0410-b53a-bc976706d245

Socket/Protocols/BSDSocketAddress.cci

index 30bb0e7..0c2499b 100644 (file)
@@ -118,7 +118,7 @@ prefix_ senf::BSDSocketAddress &
 senf::BSDSocketAddress::operator=(BSDSocketAddress const & other)
 {
     len_ = other.socklen();
-    ::memcpy(sockaddr_p(), other.sockaddr_p(), len_);
+    ::memmove(sockaddr_p(), other.sockaddr_p(), len_);
     return *this;
 }