From: g0dil Date: Thu, 26 Mar 2009 22:15:29 +0000 (+0000) Subject: Socket/Protocols: Fix BSDSocketAddress self-assignment X-Git-Url: http://g0dil.de/git?a=commitdiff_plain;h=52e435ff28583ced07c11c8035235beff1d0c425;p=senf.git Socket/Protocols: Fix BSDSocketAddress self-assignment git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1170 270642c3-0616-0410-b53a-bc976706d245 --- diff --git a/Socket/Protocols/BSDSocketAddress.cci b/Socket/Protocols/BSDSocketAddress.cci index 30bb0e7..0c2499b 100644 --- a/Socket/Protocols/BSDSocketAddress.cci +++ b/Socket/Protocols/BSDSocketAddress.cci @@ -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; }