Fix stripping whitespace from end of family in FcPatternAddFullname

This commit is contained in:
Szunti 2021-01-20 16:13:18 +01:00
parent 4b142e9241
commit 23e46d13c5
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ FcPatternAddFullname (FcPattern *pat)
len = strlen ((const char *) family); len = strlen ((const char *) family);
for (i = len; i > 0; i--) for (i = len; i > 0; i--)
{ {
if (!isspace (family[i])) if (!isspace (family[i-1]))
break; break;
} }
family[i] = 0; family[i] = 0;