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