diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-11-21 18:31:31 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-11-21 18:32:16 +0100 |
commit | 7a0bfcbce147eff61dc9b7d243b571dd34110df8 (patch) | |
tree | 935ea5aede77466e943dfb57617c501a4a5f486c /io/source | |
parent | 17e51f427b3f0cec74ac8e0a1b3f51189006ae6f (diff) |
fdo#79941: Properly handle short reads
Change-Id: Ie762ff272410d809382f98a1d446946b566df747
Diffstat (limited to 'io/source')
-rw-r--r-- | io/source/TextInputStream/TextInputStream.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io/source/TextInputStream/TextInputStream.cxx b/io/source/TextInputStream/TextInputStream.cxx index 1f2db18fafd4..ceee33a90634 100644 --- a/io/source/TextInputStream/TextInputStream.cxx +++ b/io/source/TextInputStream/TextInputStream.cxx @@ -294,7 +294,7 @@ sal_Int32 OTextInputStream::implReadNext() sal_Int32 nBytesToRead = READ_BYTE_COUNT; sal_Int32 nRead = mxStream->readSomeBytes( mSeqSource, nBytesToRead ); sal_Int32 nTotalRead = nRead; - if( nRead < nBytesToRead ) + if( nRead == 0 ) mbReachedEOF = true; // Try to convert |