diff -r 516af714ebb4 -r f2950aff7424 perfsrv/analyzetool/commandlineengine/src/CATBase.cpp --- a/perfsrv/analyzetool/commandlineengine/src/CATBase.cpp Fri Sep 17 08:38:31 2010 +0300 +++ b/perfsrv/analyzetool/commandlineengine/src/CATBase.cpp Mon Oct 04 02:45:59 2010 +0300 @@ -144,12 +144,12 @@ { LOG_LOW_FUNC_ENTRY("CATBase::GetPathOrFileName"); string sRet; - size_t iPos = sInput.size()-1; + size_t iPos = sInput.size(); sInput = ChangeSlashToBackSlash( sInput ); //Find character '\' starting from end of string - while( iPos > 0 && sInput[iPos] != '\\' ) + while( iPos > 0 && sInput[iPos-1] != '\\' ) { iPos--; } @@ -158,12 +158,12 @@ //Return file name if( bFileName ) { - sInput.erase( 0, iPos+1 ); + sInput.erase( 0, iPos ); sRet = sInput; } else //Return file path { - sInput.erase( iPos+1, string::npos ); + sInput.erase( iPos, string::npos ); sRet = sInput; } } @@ -1057,7 +1057,7 @@ // Hardcoded version number for support. out << "\n/* The AnalyzeTool version number used. */"; - out << "\n_LIT( KAtoolVersion, \"1.7.6;1.10.0\" );\n"; + out << "\n_LIT( KAtoolVersion, \"1.7.6;1.10.1\" );\n"; out << "\nconst TFileName LogFileName()"; out << "\n {";