diff --git a/src/hb-ot-tag.c b/src/hb-ot-tag.c index f3e0f1f47..426fff7de 100644 --- a/src/hb-ot-tag.c +++ b/src/hb-ot-tag.c @@ -631,7 +631,7 @@ hb_ot_tag_from_language (hb_language_t language) lang_str = hb_language_to_string (language); - if (0 == strcmp (lang_str, "x-hbot")) { + if (0 == strncmp (lang_str, "x-hbot", 6)) { char tag[4]; int i; lang_str += 6;