Kaydet (Commit) 0955eb65 authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

Use memmove in trim_WithLength

Change-Id: If75ac1968b8b0b3314ae36c2a7f163cb5428e9c6
Reviewed-on: https://gerrit.libreoffice.org/58277
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 03420374
......@@ -744,18 +744,9 @@ sal_Int32 SAL_CALL IMPL_RTL_STRNAME( trim_WithLength )( IMPL_RTL_STRCODE* pStr,
if ( nPreSpaces )
{
IMPL_RTL_STRCODE* pNewStr = pStr+nPreSpaces;
nLen -= nPreSpaces;
nIndex = nLen;
while ( nIndex )
{
*pStr = *pNewStr;
pStr++;
pNewStr++;
nIndex--;
}
memmove(pStr, pStr + nPreSpaces, nLen * sizeof(IMPL_RTL_STRCODE));
pStr += nLen;
*pStr = 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment