summaryrefslogtreecommitdiff
path: root/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'xmlsecurity/source/helper/xmlsignaturehelper2.cxx')
-rw-r--r--xmlsecurity/source/helper/xmlsignaturehelper2.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
index 8d5a0d0d2513..bb281b10be88 100644
--- a/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
+++ b/xmlsecurity/source/helper/xmlsignaturehelper2.cxx
@@ -58,9 +58,7 @@ uno::Reference< io::XInputStream > SAL_CALL UriBindingHelper::getUriBinding( con
else
{
SvFileStream* pStream = new SvFileStream( uri, StreamMode::READ );
- pStream->Seek( STREAM_SEEK_TO_END );
- sal_uLong nBytes = pStream->Tell();
- pStream->Seek( STREAM_SEEK_TO_BEGIN );
+ sal_uLong nBytes = pStream->TellEnd();
SvLockBytesRef xLockBytes = new SvLockBytes( pStream, true );
xInputStream = new utl::OInputStreamHelper( xLockBytes, nBytes );
}