diff options
author | Eike Rathke <erack@redhat.com> | 2014-03-21 18:57:24 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-03-21 19:01:52 +0100 |
commit | 80652a80da6f86974a2ce0b0367d27a5e797b85d (patch) | |
tree | 9fcc7862ce0b09bb8959c2b0b34a5f05afe68e08 /sc | |
parent | 0f2414d82c0a4b4aca9ef040d617dcc7554a8fc5 (diff) |
always resize vector, reserve is just that
Change-Id: I6e6c54e5e6ee87039b8337258bb78da2f0201d06
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/filter/excel/excimp8.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/filter/excel/excimp8.cxx b/sc/source/filter/excel/excimp8.cxx index 2a52df80c307..75bc1bbab1ad 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() ); |