Find the last occurrence of '@' in the host string. Fixes #443

pull/440/head
Kyle Johnson 2014-06-23 14:22:27 -04:00
parent 89209fbe4b
commit 229cfcaa5b
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ void RemoteCamera::Initialise()
//Fatal( "No path specified for remote camera" );
// Cache as much as we can to speed things up
std::string::size_type authIndex = host.find( '@' );
std::string::size_type authIndex = host.rfind( '@' );
if ( authIndex != std::string::npos )
{