projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
130efbb
)
rename variable and change parameters in call to find_last_not_of() to hopefully...
author
Royce Mitchell III
<royce3@ev1.net>
Tue, 13 Sep 2005 19:11:37 +0000
(19:11 +0000)
committer
Royce Mitchell III
<royce3@ev1.net>
Tue, 13 Sep 2005 19:11:37 +0000
(19:11 +0000)
svn path=/trunk/; revision=17837
reactos/tools/rbuild/backend/mingw/mingw.cpp
patch
|
blob
|
history
diff --git
a/reactos/tools/rbuild/backend/mingw/mingw.cpp
b/reactos/tools/rbuild/backend/mingw/mingw.cpp
index
5e8d578
..
67b560c
100644
(file)
--- 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;
}