From be99726f672cef086b4256ad34163f6f9ed9d4a5 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Mon, 31 Oct 2005 06:02:00 +0000 Subject: [PATCH] Revert basename patch, which breaks fontconfig clients on my system. --- src/fcfreetype.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fcfreetype.c b/src/fcfreetype.c index 0a5629c..20194f1 100644 --- a/src/fcfreetype.c +++ b/src/fcfreetype.c @@ -47,7 +47,6 @@ #include #include #include -#include #include "fcint.h" #include #include FT_FREETYPE_H @@ -1288,7 +1287,7 @@ FcFreeTypeQuery (const FcChar8 *file, printf ("Saving unique fullname %s\n", full); } - if (!FcPatternAddString (pat, FC_FILE, (FcChar8 *)basename((char *)file))) + if (!FcPatternAddString (pat, FC_FILE, file)) goto bail1; if (!FcPatternAddInteger (pat, FC_INDEX, id))