From 14b4d84eef18bd54287c10ce44eaef4f642f6238 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 11 Jan 2018 10:08:25 +0100 Subject: [PATCH] [aat] Fix RearrangementSubtable action --- src/hb-aat-layout-morx-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-aat-layout-morx-table.hh b/src/hb-aat-layout-morx-table.hh index 76c9a6083..cbc69d26e 100644 --- a/src/hb-aat-layout-morx-table.hh +++ b/src/hb-aat-layout-morx-table.hh @@ -121,7 +121,7 @@ struct RearrangementSubtable memcpy (buf + 2, info + end - r, r * sizeof (buf[0])); if (l != r) - memmove (info + start + r - l, info + start + l, (end - start - l - r) * sizeof (buf[0])); + memmove (info + start + r, info + start + l, (end - start - l - r) * sizeof (buf[0])); memcpy (info + start, buf + 2, r * sizeof (buf[0])); memcpy (info + end - l, buf, l * sizeof (buf[0]));