rename variable and change parameters in call to find_last_not_of() to hopefully be a little more accurate to what it's doing
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 19:04:24 UTC (rev 17836)
+++ trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp	2005-09-13 19:11:37 UTC (rev 17837)
@@ -863,9 +863,9 @@
 		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;
 }