From 229cfcaa5bba5815b8903ec4908cf65a701c38c1 Mon Sep 17 00:00:00 2001 From: Kyle Johnson Date: Mon, 23 Jun 2014 14:22:27 -0400 Subject: [PATCH] Find the last occurrence of '@' in the host string. Fixes #443 --- src/zm_remote_camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zm_remote_camera.cpp b/src/zm_remote_camera.cpp index 4ede09e69..5d04e013e 100644 --- a/src/zm_remote_camera.cpp +++ b/src/zm_remote_camera.cpp @@ -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 ) {