[array] Oops. Fix memcpy copy()!

This commit is contained in:
Behdad Esfahbod 2022-12-01 20:27:56 -07:00
parent 5e41766bb9
commit a24d4e9261
1 changed files with 1 additions and 1 deletions

View File

@ -286,7 +286,7 @@ struct hb_array_t : hb_iter_with_fallback_t<hb_array_t<Type>, Type&>
TRACE_SERIALIZE (this);
auto* out = c->start_embed (arrayZ);
if (unlikely (!c->extend_size (out, get_size (), false))) return_trace (hb_array_t ());
hb_memcpy (out, arrayZ, length);
hb_memcpy (out, arrayZ, get_size ());
return_trace (hb_array_t (out, length));
}