Fix stripping whitespace from end of family in FcPatternAddFullname
This commit is contained in:
parent
4b142e9241
commit
23e46d13c5
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue