From 7e6e5bf6147596d6d096e2ba37f3a6eefd7429cd Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 10 Oct 2018 18:59:07 -0400 Subject: [PATCH] Fix option string matching --- src/hb-common.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-common.cc b/src/hb-common.cc index f698a4406..eda41dd87 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc @@ -57,7 +57,7 @@ _hb_options_init (void) p = c + strlen (c); #define OPTION(name, symbol) \ - if (0 == strncmp (c, name, p - c)) u.opts.symbol = true; + if (0 == strncmp (c, name, p - c) && strlen (name) == p - c) u.opts.symbol = true; OPTION ("uniscribe-bug-compatible", uniscribe_bug_compatible); OPTION ("aat", aat);