[Scummvm-cvs-logs] SF.net SVN: scummvm:[34316] scummvm/trunk/common/stream.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Wed Sep 3 20:07:33 CEST 2008
Revision: 34316
http://scummvm.svn.sourceforge.net/scummvm/?rev=34316&view=rev
Author: fingolfin
Date: 2008-09-03 18:07:31 +0000 (Wed, 03 Sep 2008)
Log Message:
-----------
Fixed Stream::readLine implementation to match its doxygen comment
Modified Paths:
--------------
scummvm/trunk/common/stream.cpp
Modified: scummvm/trunk/common/stream.cpp
===================================================================
--- scummvm/trunk/common/stream.cpp 2008-09-03 17:53:25 UTC (rev 34315)
+++ scummvm/trunk/common/stream.cpp 2008-09-03 18:07:31 UTC (rev 34316)
@@ -211,6 +211,9 @@
break;
line += buf;
}
+
+ if (line.lastChar() == '\n')
+ line.deleteLastChar();
return line;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list