summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzunti <Szunti@users.noreply.github.com>2021-01-20 16:13:18 +0100
committerSzunti <Szunti@users.noreply.github.com>2021-01-20 16:13:18 +0100
commit23e46d13c5da49c695d3df35b9ebde6131a90dac (patch)
treeabba16f7b310dd62ad1118a9e1afbe6965d7708f
parent4b142e924131043bd4ea4629b9e4c23175e55daf (diff)
Fix stripping whitespace from end of family in FcPatternAddFullname
-rw-r--r--src/fcopentype.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcopentype.c b/src/fcopentype.c
index 39c05e9..eff3742 100644
--- a/src/fcopentype.c
+++ b/src/fcopentype.c
@@ -49,7 +49,7 @@ FcPatternAddFullname (FcPattern *pat)
len = strlen ((const char *) family);
for (i = len; i > 0; i--)
{
- if (!isspace (family[i]))
+ if (!isspace (family[i-1]))
break;
}
family[i] = 0;