fontconfig: Branch 'master'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 src/fcopentype.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 23e46d13c5da49c695d3df35b9ebde6131a90dac
Author: Szunti <Szunti@xxxxxxxxxxxxxxxxxxxxxxxx>
Date:   Wed Jan 20 16:13:18 2021 +0100

    Fix stripping whitespace from end of family in FcPatternAddFullname

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;
_______________________________________________
Fontconfig mailing list
Fontconfig@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/fontconfig



[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux