diff options
author | Max Horn | 2008-09-03 18:07:31 +0000 |
---|---|---|
committer | Max Horn | 2008-09-03 18:07:31 +0000 |
commit | c7a0b52c179f9d0238213e2d5ce5bbda57d0739c (patch) | |
tree | 2c3bc39adb9777542e6ba72a395f1c0daec58635 /common | |
parent | 57e724bfc34508b7c43441e8d274e76ce17b6e19 (diff) | |
download | scummvm-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.cpp | 3 |
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; } |