Fix global cache reads of subdirectories.
reviewed by: plam
This commit is contained in:
parent
971cf18018
commit
30c4189deb
|
@ -1,3 +1,10 @@
|
|||
2006-01-29 Mike Fabian <mfabian@suse.de>
|
||||
reviewed by: plam
|
||||
|
||||
* src/fccache.c (FcGlobalCacheReadDir):
|
||||
|
||||
Fix global cache reads of subdirectories.
|
||||
|
||||
2006-01-29 Patrick Lam <plam@mit.edu>
|
||||
* doc/fcconfig.fncs:
|
||||
Add documentation for FcConfigNormalizeFontDir.
|
||||
|
|
|
@ -319,7 +319,7 @@ FcGlobalCacheReadDir (FcFontSet *set, FcStrSet *dirs, FcGlobalCache * cache, con
|
|||
if (strncmp (d->name, dir, strlen(dir)) == 0)
|
||||
{
|
||||
lseek (cache->fd, d->offset, SEEK_SET);
|
||||
if (!FcDirCacheConsume (cache->fd, dir, set, config))
|
||||
if (!FcDirCacheConsume (cache->fd, d->name, set, config))
|
||||
return FcFalse;
|
||||
if (strcmp (d->name, dir) == 0)
|
||||
ret = FcTrue;
|
||||
|
|
Loading…
Reference in New Issue