Author: peterw
Date: Mon Nov 26 00:12:24 2007
New Revision: 30761
URL:
http://svn.reactos.org/svn/reactos?rev=30761&view=rev
Log:
- Fix a display bug when displaying binutils version.
Modified:
trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp
Modified: trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/tools/rbuild/backend/mingw…
==============================================================================
--- trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp (original)
+++ trunk/reactos/tools/rbuild/backend/mingw/mingw.cpp Mon Nov 26 00:12:24 2007
@@ -840,6 +840,7 @@
{
FILE *fp;
int ch, i;
+ size_t newline;
char buffer[81];
fp = popen ( versionCommand.c_str () , "r" );
@@ -865,6 +866,8 @@
{
prevtoken = token;
version = string( prevtoken );
+ if ( (newline = version.find('\n')) != std::string::npos )
+ version.erase(newline, 1);
if ( version.find('.') != std::string::npos )
break;
token = strtok ( NULL, separators );