Fix language extension matching

This commit is contained in:
Behdad Esfahbod 2011-01-10 07:45:41 -05:00
parent a07874300a
commit ba9ab8d6d9
1 changed files with 1 additions and 1 deletions

View File

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