summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorRosemary <rosemaryseb8@gmail.com>2015-10-08 10:15:03 +0530
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-10-08 17:45:53 +0200
commit7168f6b20ba620e20233bc9e89e1c97b6b353b97 (patch)
tree21fa86dc33c49baf850acf5a82bc55af42de7775 /oox
parente5f1bba213b8ca9c3b8138ba053da453852ffb87 (diff)
The correct size of length is 4
Change-Id: I8735e68e1094e40f989ebc0a8a3926c9e2f06fd4
Diffstat (limited to 'oox')
-rw-r--r--oox/source/ole/vbaexport.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/oox/source/ole/vbaexport.cxx b/oox/source/ole/vbaexport.cxx
index 20b97410cefe..717f6eb107a6 100644
--- a/oox/source/ole/vbaexport.cxx
+++ b/oox/source/ole/vbaexport.cxx
@@ -424,7 +424,7 @@ void VBAEncryption::writeIgnoredEnc()
void VBAEncryption::writeDataLengthEnc()
{
sal_uInt16 temp = mnLength;
- for(sal_Int8 i = 0; i < 2; ++i)
+ for(sal_Int8 i = 0; i < 4; ++i)
{
sal_uInt8 nByte = temp & 0xFF;
sal_uInt8 nByteEnc = nByte ^ (mnEncryptedByte2 + mnUnencryptedByte1);