]> git.wh0rd.org Git - fontconfig.git/commitdiff
Revert basename patch, which breaks fontconfig clients on my system.
authorPatrick Lam <plam@MIT.EDU>
Mon, 31 Oct 2005 06:02:00 +0000 (06:02 +0000)
committerPatrick Lam <plam@MIT.EDU>
Mon, 31 Oct 2005 06:02:00 +0000 (06:02 +0000)
src/fcfreetype.c

index 0a5629c404eead919735dd2003d41e938dbe8e2e..20194f1818ec04474536aa61b73fd4cb30bc8f50 100644 (file)
@@ -47,7 +47,6 @@
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
-#include <libgen.h>
 #include "fcint.h"
 #include <ft2build.h>
 #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))