Kaydet (Commit) 7a0bfcbc authored tarafından Stephan Bergmann's avatar Stephan Bergmann

fdo#79941: Properly handle short reads

Change-Id: Ie762ff272410d809382f98a1d446946b566df747
üst 17e51f42
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment