usp10: Use memmove() in GSUB_apply_LigatureSubst().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-03-01 07:14:55 +01:00 committed by Alexandre Julliard
parent 66df220c00
commit bab506e1cd
1 changed files with 2 additions and 3 deletions

View File

@ -1058,9 +1058,8 @@ static INT GSUB_apply_LigatureSubst(const OT_LookupTable *look, WORD *glyphs, IN
TRACE("0x%x\n",glyphs[replaceIdx]);
if (CompCount > 0)
{
int j;
for (j = replaceIdx + 1; j < *glyph_count; j++)
glyphs[j] =glyphs[j+CompCount];
unsigned int j = replaceIdx + 1;
memmove(&glyphs[j], &glyphs[j + CompCount], (*glyph_count - j) * sizeof(*glyphs));
*glyph_count = *glyph_count - CompCount;
}
return replaceIdx + write_dir;