Revert basename patch, which breaks fontconfig clients on my system.

This commit is contained in:
Patrick Lam 2005-10-31 06:02:00 +00:00
parent 720298e773
commit be99726f67
1 changed files with 1 additions and 2 deletions

View File

@ -47,7 +47,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <libgen.h>
#include "fcint.h" #include "fcint.h"
#include <ft2build.h> #include <ft2build.h>
#include FT_FREETYPE_H #include FT_FREETYPE_H
@ -1288,7 +1287,7 @@ FcFreeTypeQuery (const FcChar8 *file,
printf ("Saving unique fullname %s\n", full); printf ("Saving unique fullname %s\n", full);
} }
if (!FcPatternAddString (pat, FC_FILE, (FcChar8 *)basename((char *)file))) if (!FcPatternAddString (pat, FC_FILE, file))
goto bail1; goto bail1;
if (!FcPatternAddInteger (pat, FC_INDEX, id)) if (!FcPatternAddInteger (pat, FC_INDEX, id))