From ba9ab8d6d9c863662c4b44ace4a4d89e29e592f2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 10 Jan 2011 07:45:41 -0500 Subject: [PATCH] Fix language extension matching --- src/hb-ot-tag.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;