From: Behdad Esfahbod Date: Mon, 10 Jan 2011 12:45:41 +0000 (-0500) Subject: Fix language extension matching X-Git-Tag: submit/2.0alpha-wayland/20121130.004132~9^2~414 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ba9ab8d6d9c863662c4b44ace4a4d89e29e592f2;p=profile%2Fivi%2Forg.tizen.video-player.git Fix language extension matching --- diff --git a/src/hb-ot-tag.c b/src/hb-ot-tag.c index f3e0f1f..426fff7 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;