Skip to content
Snippets Groups Projects
Commit 27c043b0 authored by g0dil's avatar g0dil
Browse files

Socket/Protocols: Fix BSDSocketAddress self-assignment

parent ddd780e6
No related branches found
No related tags found
No related merge requests found
...@@ -118,7 +118,7 @@ prefix_ senf::BSDSocketAddress & ...@@ -118,7 +118,7 @@ prefix_ senf::BSDSocketAddress &
senf::BSDSocketAddress::operator=(BSDSocketAddress const & other) senf::BSDSocketAddress::operator=(BSDSocketAddress const & other)
{ {
len_ = other.socklen(); len_ = other.socklen();
::memcpy(sockaddr_p(), other.sockaddr_p(), len_); ::memmove(sockaddr_p(), other.sockaddr_p(), len_);
return *this; return *this;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment