fixed c++03 compatibility issue

This commit is contained in:
Günter Obiltschnig 2019-03-18 19:29:41 +01:00
parent dc5c87c135
commit 9422825790

View File

@ -169,7 +169,7 @@ void HTTPNTLMCredentials::splitUsername(const std::string& usernameAndDomain, st
if (pos != std::string::npos)
{
domain.assign(usernameAndDomain, 0, pos);
username.assign(usernameAndDomain, pos + 1);
username.assign(usernameAndDomain, pos + 1, std::string::npos);
return;
}
else
@ -178,7 +178,7 @@ void HTTPNTLMCredentials::splitUsername(const std::string& usernameAndDomain, st
if (pos != std::string::npos)
{
username.assign(usernameAndDomain, 0, pos);
domain.assign(usernameAndDomain, pos + 1);
domain.assign(usernameAndDomain, pos + 1, std::string::npos);
return;
}
}