commit | 7e6e5bf6147596d6d096e2ba37f3a6eefd7429cd | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Wed Oct 10 18:59:07 2018 -0400 |
committer | Behdad Esfahbod <behdad@behdad.org> | Wed Oct 10 18:59:07 2018 -0400 |
tree | d04b386ed3d442691a4e5714603c1330507f1b04 | |
parent | 5d34164d98f04816aafaa0abfc44cd899c7d70b3 [diff] |
Fix option string matching
diff --git a/src/hb-common.cc b/src/hb-common.cc index f698a44..eda41dd 100644 --- a/src/hb-common.cc +++ b/src/hb-common.cc
@@ -57,7 +57,7 @@ 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);