summaryrefslogtreecommitdiff
path: root/sal/rtl/ustrbuf.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/rtl/ustrbuf.cxx')
-rw-r--r--sal/rtl/ustrbuf.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/ustrbuf.cxx b/sal/rtl/ustrbuf.cxx
index 38c1b0053607..2ebae71dbaf0 100644
--- a/sal/rtl/ustrbuf.cxx
+++ b/sal/rtl/ustrbuf.cxx
@@ -141,7 +141,7 @@ void SAL_CALL rtl_uStringbuffer_insert( rtl_uString ** This,
if( len == 1 )
/* optimized for 1 character */
pBuf[offset] = *str;
- else if( len > 1 )
+ else
memcpy( pBuf + offset, str, len * sizeof(sal_Unicode) );
}
(*This)->length = nOldLen + len;