Another hb_memcpy instead of strncpy use

This commit is contained in:
Behdad Esfahbod 2022-11-09 11:32:30 -07:00
parent cd011ceadf
commit 630f09c8b6
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}
}