aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Richard <[email protected]>2016-04-10 13:14:52 +0000
committerVincent Richard <[email protected]>2016-04-10 13:14:52 +0000
commitac8543ac5773038b64397b1dc7c0a316936a18d8 (patch)
treea0af39f7ff3e72374906a6782647c6758a302351
parentAlways imbue C locale when using istringstream. (diff)
downloadvmime-ac8543ac5773038b64397b1dc7c0a316936a18d8.tar.gz
vmime-ac8543ac5773038b64397b1dc7c0a316936a18d8.zip
Fixed 'portStr' not a std::string anymore.
-rw-r--r--src/vmime/platforms/posix/posixSocket.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vmime/platforms/posix/posixSocket.cpp b/src/vmime/platforms/posix/posixSocket.cpp
index 131a4c4d..e27cb170 100644
--- a/src/vmime/platforms/posix/posixSocket.cpp
+++ b/src/vmime/platforms/posix/posixSocket.cpp
@@ -461,7 +461,7 @@ void posixSocket::resolve(struct ::addrinfo** addrInfo, const vmime::string& add
#else // !VMIME_HAVE_GETADDRINFO_A
- if (::getaddrinfo(address.c_str(), portStr.str().c_str(), &hints, addrInfo) != 0)
+ if (::getaddrinfo(address.c_str(), portStr, &hints, addrInfo) != 0)
{
// Error: cannot resolve address
throw vmime::exceptions::connection_error("Cannot resolve address.");