[SimpleGlyph] Use hb_memset instead of memset

This commit is contained in:
Behdad Esfahbod committed 2023-04-28 11:38:12 -06:00
1 parent 1b0c5a3e63
commit e5dfb6a4b6
1 file changed
+1 -1
+1 -1
View File
@@ -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++)