aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2008-09-03 18:07:31 +0000
committerMax Horn2008-09-03 18:07:31 +0000
commitc7a0b52c179f9d0238213e2d5ce5bbda57d0739c (patch)
tree2c3bc39adb9777542e6ba72a395f1c0daec58635 /common
parent57e724bfc34508b7c43441e8d274e76ce17b6e19 (diff)
downloadscummvm-rg350-c7a0b52c179f9d0238213e2d5ce5bbda57d0739c.tar.gz
scummvm-rg350-c7a0b52c179f9d0238213e2d5ce5bbda57d0739c.tar.bz2
scummvm-rg350-c7a0b52c179f9d0238213e2d5ce5bbda57d0739c.zip
Fixed Stream::readLine implementation to match its doxygen comment
svn-id: r34316
Diffstat (limited to 'common')
-rw-r--r--common/stream.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/stream.cpp b/common/stream.cpp
index 1ca741483e..4a411fadf5 100644
--- a/common/stream.cpp
+++ b/common/stream.cpp
@@ -211,6 +211,9 @@ String SeekableReadStream::readLine() {
break;
line += buf;
}
+
+ if (line.lastChar() == '\n')
+ line.deleteLastChar();
return line;
}