]> git.wh0rd.org - fontconfig.git/commitdiff
[fccache] Consistently use FcStat() over stat() (bug #18195)
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 28 Dec 2008 09:00:09 +0000 (04:00 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 14 Feb 2009 00:54:01 +0000 (16:54 -0800)
src/fccache.c

index 241ebd089d6e52fe8d09ea35ff5311dce1f0072f..c7a2dcdc0fbc9ca18654bcc06426e5dab45a6fac 100644 (file)
@@ -520,7 +520,7 @@ FcCacheTimeValid (FcCache *cache, struct stat *dir_stat)
 
     if (!dir_stat)
     {
-       if (stat ((const char *) FcCacheDir (cache), &dir_static) < 0)
+       if (FcStat ((const char *) FcCacheDir (cache), &dir_static) < 0)
            return FcFalse;
        dir_stat = &dir_static;
     }