Commit 9a6a1dee authored by Akira TAGOH's avatar Akira TAGOH

Ignore hypens in a name to parse

Fixes fontconfig/fontconfig#214
parent d8b73c53
Pipeline #113315 passed with stage
in 4 minutes and 46 seconds
......@@ -240,7 +240,7 @@ FcNameFindConstant (const FcChar8 *string)
int mid = (min + max) / 2;
int ret;
ret = FcStrCmpIgnoreBlanksAndCase (_FcBaseConstantSymbols[mid].name, string);
ret = FcStrCmpIgnoreCaseAndDelims (_FcBaseConstantSymbols[mid].name, string, (const FcChar8 *)" -");
if (ret > 0)
max = mid - 1;
else if (ret < 0)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment