mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
fix bug in GetBinutilsVersion()
svn path=/trunk/; revision=17836
This commit is contained in:
parent
7f94d6e5bf
commit
130efbb545
1 changed files with 2 additions and 2 deletions
|
@ -865,7 +865,7 @@ MingwBackend::GetBinutilsVersion ( const string& binutilsCommand )
|
|||
string version = string ( prevtoken );
|
||||
int firstSpace = version.find_last_not_of ( " \t" );
|
||||
if ( firstSpace != -1 )
|
||||
return string ( version, 0, firstSpace - 1);
|
||||
return string ( version, 0, firstSpace);
|
||||
else
|
||||
return version;
|
||||
}
|
||||
|
@ -910,7 +910,7 @@ MingwBackend::DetectBinutils ()
|
|||
}
|
||||
if ( detectedBinutils )
|
||||
{
|
||||
const string& binutilsVersion = GetBinutilsVersion ( binutilsCommand );
|
||||
string binutilsVersion = GetBinutilsVersion ( binutilsCommand );
|
||||
if ( IsSupportedBinutilsVersion ( binutilsVersion ) )
|
||||
printf ( "detected (%s)\n", binutilsCommand.c_str () );
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue