summaryrefslogtreecommitdiff
path: root/lotuswordpro/source/filter/lwptools.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'lotuswordpro/source/filter/lwptools.cxx')
-rw-r--r--lotuswordpro/source/filter/lwptools.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwptools.cxx b/lotuswordpro/source/filter/lwptools.cxx
index 7390eb1e3878..0f5ae98e7496 100644
--- a/lotuswordpro/source/filter/lwptools.cxx
+++ b/lotuswordpro/source/filter/lwptools.cxx
@@ -93,7 +93,7 @@ void LwpTools::QuickReadUnicode(LwpObjectStream* pObjStrm,
while(strlen)
{
- strlen>1023?len=1023 :len=strlen;
+ len = std::min(sal_uInt16(1023), strlen);
len = pObjStrm->QuickRead(buf, len);
buf[len] = '\0';
strBuf.append( OUString(buf, len, aEncoding) );