diff options
author | Eike Rathke <erack@redhat.com> | 2017-11-16 17:07:58 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2017-11-16 17:09:20 +0100 |
commit | 280a5166ad4032a618c5e29db701330f7dbdfbff (patch) | |
tree | a638113b586ac74df0915a38567d06e8b4b6dd2f /sc/inc | |
parent | Make checkIdenticalDefaultArguments more precise (diff) | |
download | core-280a5166ad4032a618c5e29db701330f7dbdfbff.tar.gz core-280a5166ad4032a618c5e29db701330f7dbdfbff.zip |
Straighten use of MAXSTRLEN to be maximum string length
... plus limiting 0-character, and not buffer length in (only)
some cases where max len then was MAXSTRLEN-1, accompanied by a
mix of >= and > comparisons.
Change-Id: I5b8452db52b1d464eb1410e31990043f7997af20
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/compiler.hxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/inc/compiler.hxx b/sc/inc/compiler.hxx index d09f8a0af140..6d1db7e8c1e1 100644 --- a/sc/inc/compiler.hxx +++ b/sc/inc/compiler.hxx @@ -131,7 +131,7 @@ public: } sharedstring; ScMatrix* pMat; FormulaError nError; - sal_Unicode cStr[ MAXSTRLEN+1 ]; // string (up to 255 characters + 0) + sal_Unicode cStr[ MAXSTRLEN+1 ]; // string (up to MAXSTRLEN characters + 0) short nJump[ FORMULA_MAXJUMPCOUNT + 1 ]; // If/Chose token }; @@ -273,7 +273,7 @@ private: // For CONV_XL_OOX, may be set via API by MOOXML filter. css::uno::Sequence<css::sheet::ExternalLinkInfo> maExternalLinks; - sal_Unicode cSymbol[MAXSTRLEN]; // current Symbol + sal_Unicode cSymbol[MAXSTRLEN+1]; // current Symbol + 0 OUString aFormula; // formula source code sal_Int32 nSrcPos; // tokenizer position (source code) mutable ScRawToken maRawToken; |