[hb-info] Enlarge name buffer

This commit is contained in:
Behdad Esfahbod 2023-01-19 17:28:41 -07:00
parent d759918d18
commit e6544148b5
1 changed files with 2 additions and 2 deletions

View File

@ -224,7 +224,7 @@ struct info_t
if (language_str)
language = hb_language_from_string (language_str, -1);
char name[128];
char name[16384];
unsigned name_len = sizeof name;
hb_ot_name_get_utf8 (face, name_id,
language,
@ -329,7 +329,7 @@ struct info_t
const auto *entries = hb_ot_name_list_names (face, &count);
for (unsigned i = 0; i < count; i++)
{
char name[128];
char name[16384];
unsigned name_len = sizeof name;
hb_ot_name_get_utf8 (face, entries[i].name_id,
language,