From 3b0cfca870f98800493d36914fd16b276460bfb0 Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Tue, 13 Sep 2005 19:11:37 +0000 Subject: [PATCH] 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 --- reactos/tools/rbuild/backend/mingw/mingw.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/tools/rbuild/backend/mingw/mingw.cpp b/reactos/tools/rbuild/backend/mingw/mingw.cpp index 5e8d5783ebb..67b560c7a2f 100644 --- a/reactos/tools/rbuild/backend/mingw/mingw.cpp +++ b/reactos/tools/rbuild/backend/mingw/mingw.cpp @@ -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; }