summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}