summaryrefslogtreecommitdiff
path: root/src/cppunit/CompilerOutputter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cppunit/CompilerOutputter.cpp')
-rw-r--r--src/cppunit/CompilerOutputter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cppunit/CompilerOutputter.cpp b/src/cppunit/CompilerOutputter.cpp
index e71f067..4bc9e31 100644
--- a/src/cppunit/CompilerOutputter.cpp
+++ b/src/cppunit/CompilerOutputter.cpp
@@ -194,12 +194,12 @@ CompilerOutputter::wrap( std::string message )
for ( Lines::iterator it = lines.begin(); it != lines.end(); ++it )
{
std::string line( *it );
- const int maxLineLength = 80;
+ const int maxLineLength = 79;
int index =0;
while ( index < line.length() )
{
- std::string line( line.substr( index, maxLineLength ) );
- wrapped += line;
+ std::string lineSlice( line.substr( index, maxLineLength ) );
+ wrapped += lineSlice;
index += maxLineLength;
if ( index < line.length() )
wrapped += "\n";