Oops, need a temporary when there's no port.

This commit is contained in:
Unknown W. Brackets 2013-03-24 10:56:51 -07:00
parent e4223dbcb0
commit 6483b51f24

View File

@ -86,10 +86,10 @@ namespace Reporting
std::string host = ServerHost();
size_t length = ServerHostnameLength();
if (length == host.npos)
return host.c_str();
lastHostname = host.substr(0, length);
if (length == lastHostname.npos)
return lastHostname.c_str();
return lastHostname.c_str();
}