diff options
Diffstat (limited to 'sal/rtl/ustrbuf.cxx')
-rw-r--r-- | sal/rtl/ustrbuf.cxx | 2 |
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; |