aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/posix/posixSocket.cpp
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2005-03-16 17:13:08 +0000
committerVincent Richard <[email protected]>2005-03-16 17:13:08 +0000
commit2ca56a209f9968e4546ab3c7038a3dec03709cfa (patch)
tree215eef7c8a750988db9663de65f8b41ae0c6463d /src/platforms/posix/posixSocket.cpp
parentSupport for In-Reply-To header field (type MessageId). (diff)
downloadvmime-2ca56a209f9968e4546ab3c7038a3dec03709cfa.tar.gz
vmime-2ca56a209f9968e4546ab3c7038a3dec03709cfa.zip
Fixed compilation problems on Solaris 9.
Diffstat (limited to 'src/platforms/posix/posixSocket.cpp')
-rw-r--r--src/platforms/posix/posixSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platforms/posix/posixSocket.cpp b/src/platforms/posix/posixSocket.cpp
index 39acf666..1be5788c 100644
--- a/src/platforms/posix/posixSocket.cpp
+++ b/src/platforms/posix/posixSocket.cpp
@@ -83,7 +83,7 @@ void posixSocket::connect(const vmime::string& address, const vmime::port_t port
throw vmime::exceptions::connection_error("Cannot resolve address.");
}
- bcopy(hostInfo->h_addr, reinterpret_cast <char*>(&addr.sin_addr), hostInfo->h_length);
+ ::memcpy(reinterpret_cast <char*>(&addr.sin_addr), hostInfo->h_addr, hostInfo->h_length);
}
// Get a new socket