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))