summaryrefslogtreecommitdiff
path: root/sot
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-02-12 11:13:32 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-02-12 14:46:47 -0500
commitda2efb3e14aa93be13dc4a88f0e41b7dc7948e15 (patch)
treed0515393ab7a1df96281087efa6b17b67c86eac2 /sot
parent5499d4c352567aacd108663af32c056e083fc8de (diff)
Perhaps it's better to use nMaxLegalStr here than using hardcoded 32.
Change-Id: Idee4667f5ef9aa71af05139b6fc7ee8a5166b398
Diffstat (limited to 'sot')
-rw-r--r--sot/source/sdstor/stgelem.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sot/source/sdstor/stgelem.cxx b/sot/source/sdstor/stgelem.cxx
index e2aae4b3b0f6..cd3eee63ced9 100644
--- a/sot/source/sdstor/stgelem.cxx
+++ b/sot/source/sdstor/stgelem.cxx
@@ -298,12 +298,12 @@ bool StgEntry::SetName( const OUString& rName )
aName = aName.copy(0, nMaxLegalStr);
}
- int i;
- for( i = 0; i < rName.getLength() && i < 32; i++ )
+ sal_uInt16 i;
+ for( i = 0; i < rName.getLength() && i <= nMaxLegalStr; i++ )
{
nName[ i ] = rName[ i ];
}
- while( i < 32 )
+ while (i <= nMaxLegalStr)
{
nName[ i++ ] = 0;
}