Fix parsing of features like "- liga" (with the space)

This commit is contained in:
Behdad Esfahbod committed 2014-07-25 12:02:22 -04:00
1 parent e15fa7a8cf
commit 2ee5f665de
1 file changed
+2 -2
+2 -2
View File
@@ -94,11 +94,11 @@ parse_feature_value_prefix (const char **pp, const char *end, hb_feature_t *feat
static hb_bool_t
parse_feature_tag (const char **pp, const char *end, hb_feature_t *feature)
{
parse_space (pp, end);
const char *p = *pp;
char c;
parse_space (pp, end);
#define ISALNUM(c) (('a' <= (c) && (c) <= 'z') || ('A' <= (c) && (c) <= 'Z') || ('0' <= (c) && (c) <= '9'))
while (*pp < end && (c = **pp, ISALNUM(c)))
(*pp)++;