From: Patrick Lam Date: Mon, 31 Oct 2005 06:02:00 +0000 (+0000) Subject: Revert basename patch, which breaks fontconfig clients on my system. X-Git-Tag: fc-2_3_92~13 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=be99726f672cef086b4256ad34163f6f9ed9d4a5;p=fontconfig.git Revert basename patch, which breaks fontconfig clients on my system. --- 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))