diff options
author | Mathias Bauer <mba@openoffice.org> | 2001-09-14 12:46:58 +0000 |
---|---|---|
committer | Mathias Bauer <mba@openoffice.org> | 2001-09-14 12:46:58 +0000 |
commit | 5925d1b94c460a61cc2e2d6bb9fd1011d4321458 (patch) | |
tree | bb99320c0dfd59194fd94357c1d0a3ed502056bf /ucb/source | |
parent | 95fd0081a7ed0125da0f309242be5ada89b03d0a (diff) |
#85600#: file IO errors in HTTP Post
Diffstat (limited to 'ucb/source')
-rw-r--r-- | ucb/source/ucp/webdav/NeonSession.cxx | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/ucb/source/ucp/webdav/NeonSession.cxx b/ucb/source/ucp/webdav/NeonSession.cxx index 75ece50cee0a..1913d0186850 100644 --- a/ucb/source/ucp/webdav/NeonSession.cxx +++ b/ucb/source/ucp/webdav/NeonSession.cxx @@ -2,9 +2,9 @@ * * $RCSfile: NeonSession.cxx,v $ * - * $Revision: 1.11 $ + * $Revision: 1.12 $ * - * last change: $Author: sb $ $Date: 2001-08-08 10:04:35 $ + * last change: $Author: mba $ $Date: 2001-09-14 13:46:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -553,7 +553,11 @@ bool getDataFromInputStream( const uno::Reference< io::XInputStream > & xStream, sal_Int32 nRead = xStream->readBytes( rData, nSize ); if ( nRead == nSize ) + { + rData.realloc( nSize + 1 ); + rData[ nSize ] = sal_Int8( 0 ); return true; + } } catch ( io::NotConnectedException const & ) { @@ -591,7 +595,8 @@ bool getDataFromInputStream( const uno::Reference< io::XInputStream > & xStream, nRead = xStream->readSomeBytes( aBuffer, 65536 ); } - rData.realloc( nPos ); + rData.realloc( nPos + 1 ); + rData[ nPos ] = sal_Int8( 0 ); return true; } catch ( io::NotConnectedException const & ) |