diff options
author | Rosemary <rosemaryseb8@gmail.com> | 2015-10-08 10:15:03 +0530 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-10-08 17:45:53 +0200 |
commit | 7168f6b20ba620e20233bc9e89e1c97b6b353b97 (patch) | |
tree | 21fa86dc33c49baf850acf5a82bc55af42de7775 /oox/source/ole/vbaexport.cxx | |
parent | e5f1bba213b8ca9c3b8138ba053da453852ffb87 (diff) |
The correct size of length is 4
Change-Id: I8735e68e1094e40f989ebc0a8a3926c9e2f06fd4
Diffstat (limited to 'oox/source/ole/vbaexport.cxx')
-rw-r--r-- | oox/source/ole/vbaexport.cxx | 2 |
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); |