Commit bab506e1 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

usp10: Use memmove() in GSUB_apply_LigatureSubst().

parent 66df220c
......@@ -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;
......
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