rename variable and change parameters in call to find_last_not_of() to hopefully be a little more accurate to what it's doing

svn path=/trunk/; revision=17837
This commit is contained in:
Royce Mitchell III 2005-09-13 19:11:37 +00:00
parent 130efbb545
commit 3b0cfca870

View file

@ -863,9 +863,9 @@ MingwBackend::GetBinutilsVersion ( const string& binutilsCommand )
token = strtok ( NULL, separators );
}
string version = string ( prevtoken );
int firstSpace = version.find_last_not_of ( " \t" );
if ( firstSpace != -1 )
return string ( version, 0, firstSpace);
int lastDigit = version.find_last_not_of ( "\t\r\n" );
if ( lastDigit != -1 )
return string ( version, 0, lastDigit+1 );
else
return version;
}