[Libreoffice-commits] core.git: sc/source
Eike Rathke
erack at redhat.com
Fri Mar 21 11:02:29 PDT 2014
sc/source/filter/excel/excimp8.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 80652a80da6f86974a2ce0b0367d27a5e797b85d
Author: Eike Rathke <erack at redhat.com>
Date: Fri Mar 21 18:57:24 2014 +0100
always resize vector, reserve is just that
Change-Id: I6e6c54e5e6ee87039b8337258bb78da2f0201d06
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx
index 2a52df8..75bc1bb 100644
--- a/sc/source/filter/excel/excimp8.cxx
+++ b/sc/source/filter/excel/excimp8.cxx
@@ -377,8 +377,7 @@ void ImportExcel8::Feat( void )
// TODO: could here be some sanity check applied to not allocate 4GB?
aProt.maSecurityDescriptor.reserve( nCbSD);
sal_Size nRead = aIn.Read( &aProt.maSecurityDescriptor.front(), nCbSD);
- if (nRead != nCbSD)
- aProt.maSecurityDescriptor.resize( nRead);
+ aProt.maSecurityDescriptor.resize( nRead);
}
GetSheetProtectBuffer().AppendEnhancedProtection( aProt, GetCurrScTab() );
More information about the Libreoffice-commits
mailing list