From e5dfb6a4b6122d1e1cb6c3feea985ee68154c736 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 28 Apr 2023 11:38:12 -0600 Subject: [PATCH] [SimpleGlyph] Use hb_memset instead of memset --- src/OT/glyf/SimpleGlyph.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/glyf/SimpleGlyph.hh b/src/OT/glyf/SimpleGlyph.hh index bc4c51d10..e0c586c0c 100644 --- a/src/OT/glyf/SimpleGlyph.hh +++ b/src/OT/glyf/SimpleGlyph.hh @@ -194,7 +194,7 @@ struct SimpleGlyph points.alloc (points.length + num_points + 4, true); // Allocate for phantom points, to avoid a possible copy if (!points.resize (points.length + num_points, false)) return false; auto points_ = points.as_array ().sub_array (old_length); - memset (points_.arrayZ, 0, sizeof (contour_point_t) * num_points); + hb_memset (points_.arrayZ, 0, sizeof (contour_point_t) * num_points); if (phantom_only) return true; for (int i = 0; i < num_contours; i++)