From 630f09c8b6022184f7a414bb5e07c01898fae60c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 9 Nov 2022 11:32:30 -0700 Subject: [PATCH] Another hb_memcpy instead of strncpy use --- src/hb-subset-plan.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-subset-plan.cc b/src/hb-subset-plan.cc index 81fc56a3f..3a06c5eaa 100644 --- a/src/hb-subset-plan.cc +++ b/src/hb-subset-plan.cc @@ -865,7 +865,7 @@ hb_subset_plan_create_or_fail (hb_face_t *face, break; } - strncpy (name_str, name_bytes.arrayZ, len); + hb_memcpy (name_str, name_bytes.arrayZ, len); plan->name_table_overrides->set (name_id, hb_bytes_t (name_str, len)); } }