From 961d9b9993ae815d6ba723829724bf0685809091 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Tue, 25 Oct 2005 22:29:13 +0000 Subject: [PATCH] Only add basename to patterns' FC_FILE element, not any part of the dirname. --- ChangeLog | 6 ++++++ src/fcfreetype.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 095bcb5..3eef5ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-10-25 Patrick Lam + * src/fcfreetype.c (FcFreeTypeQuery): + + Only add basename to patterns' FC_FILE element, not any part of + the dirname. + 2005-10-22 Patrick Lam * src/fcfreetype.c: diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 20194f1..0a5629c 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -47,6 +47,7 @@ #include #include #include +#include #include "fcint.h" #include #include FT_FREETYPE_H @@ -1287,7 +1288,7 @@ FcFreeTypeQuery (const FcChar8 *file, printf ("Saving unique fullname %s\n", full); } - if (!FcPatternAddString (pat, FC_FILE, file)) + if (!FcPatternAddString (pat, FC_FILE, (FcChar8 *)basename((char *)file))) goto bail1; if (!FcPatternAddInteger (pat, FC_INDEX, id)) -- 2.39.5