fix bug in GetBinutilsVersion()
Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp

Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp
--- trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp	2005-09-13 18:08:18 UTC (rev 17835)
+++ trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp	2005-09-13 19:04:24 UTC (rev 17836)
@@ -865,7 +865,7 @@
 	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 @@
 	}
 	if ( detectedBinutils )
 	{
-		const string& binutilsVersion = GetBinutilsVersion ( binutilsCommand );
+		string binutilsVersion = GetBinutilsVersion ( binutilsCommand );
 		if ( IsSupportedBinutilsVersion ( binutilsVersion ) )
 			printf ( "detected (%s)\n", binutilsCommand.c_str () );
 		else