Fix option string matching

This commit is contained in:
Behdad Esfahbod 2018-10-10 18:59:07 -04:00
parent 5d34164d98
commit 7e6e5bf614
1 changed files with 1 additions and 1 deletions

View File

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