From f9f0969cb6d54f8ee43a28c6a454d8787d10a075 Mon Sep 17 00:00:00 2001 From: Garret Rieger Date: Mon, 13 Jun 2022 17:55:26 +0000 Subject: [PATCH] [subset] switch to hb_memcpy. --- src/hb-ot-post-table-v2subset.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/hb-ot-post-table-v2subset.hh b/src/hb-ot-post-table-v2subset.hh index 3456c9883..4d427e543 100644 --- a/src/hb-ot-post-table-v2subset.hh +++ b/src/hb-ot-post-table-v2subset.hh @@ -61,8 +61,7 @@ HB_INTERNAL bool postV2Tail::serialize (hb_serialize_context_t *c, HBUINT8 *o = c->allocate_size (HBUINT8::static_size * (s.length + 1)); if (unlikely (!o)) return_trace (false); if (!c->check_assign (o[0], s.length, HB_SERIALIZE_ERROR_INT_OVERFLOW)) return_trace (false); - if (s.length) - memcpy (o+1, s.arrayZ, HBUINT8::static_size * s.length); + hb_memcpy (o+1, s.arrayZ, HBUINT8::static_size * s.length); } return_trace (true);