summaryrefslogtreecommitdiff
path: root/io/source/connector/ctr_pipe.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'io/source/connector/ctr_pipe.cxx')
-rw-r--r--io/source/connector/ctr_pipe.cxx9
1 files changed, 2 insertions, 7 deletions
diff --git a/io/source/connector/ctr_pipe.cxx b/io/source/connector/ctr_pipe.cxx
index dafdc4208019..df1529173ba6 100644
--- a/io/source/connector/ctr_pipe.cxx
+++ b/io/source/connector/ctr_pipe.cxx
@@ -49,16 +49,11 @@ namespace stoc_connector {
{
if( ! m_nStatus )
{
- if( aReadBytes.getLength() < nBytesToRead )
+ if( aReadBytes.getLength() != nBytesToRead )
{
aReadBytes.realloc( nBytesToRead );
}
- sal_Int32 n = m_pipe.read( aReadBytes.getArray() , aReadBytes.getLength() );
- if( n < aReadBytes.getLength() )
- {
- aReadBytes.realloc( n );
- }
- return n;
+ return m_pipe.read( aReadBytes.getArray() , aReadBytes.getLength() );
}
else {
throw IOException();