Merge branch 'unsafe-strdup-printf' into 'master'

gtk-demo: Fix incorrect use of g_strdup_printf

See merge request GNOME/gtk!1211
This commit is contained in:
Timm Bäder 2019-11-26 07:11:19 +00:00
commit 3d1a9c7484

View File

@ -880,7 +880,7 @@ add_instance (hb_face_t *face,
name_id = hb_ot_var_named_instance_get_subfamily_name_id (face, index);
hb_ot_name_get_utf8 (face, name_id, HB_LANGUAGE_INVALID, &name_len, name);
instance->name = g_strdup_printf (name);
instance->name = g_strdup (name);
instance->index = index;
g_hash_table_add (instances, instance);