X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Ffontfile%2Fdirfile.c;h=0d34db9004bb8fd25a654c6cb2e374a6c5689ef4;hb=3e1969f2133dfd2fac68f01b2b2aa460d86174d7;hp=c8aff6f4f053774374335cdfc1697527a67e468e;hpb=45d55832022c5ce693e99f8de99480ab968e5ff0;p=framework%2Fuifw%2Fxorg%2Flib%2Flibxfont.git diff --git a/src/fontfile/dirfile.c b/src/fontfile/dirfile.c old mode 100755 new mode 100644 index c8aff6f..0d34db9 --- a/src/fontfile/dirfile.c +++ b/src/fontfile/dirfile.c @@ -90,7 +90,7 @@ FontFileReadDirectory (char *directory, FontDirectoryPtr *pdir) strcat(dir_file, FontDirFile); file = fopen(dir_file, "rt"); if (file) { -#ifndef WIN32 +#ifndef WIN32 if (fstat (fileno(file), &statb) == -1) #else if (stat (dir_file, &statb) == -1) @@ -135,7 +135,7 @@ FontFileReadDirectory (char *directory, FontDirectoryPtr *pdir) FontFileAddFontFile (dir, font_name, file_name); } fclose(file); - + } else if (errno != ENOENT) { return BadFontPath; } @@ -188,7 +188,7 @@ FontFileDirectoryChanged(FontDirectoryPtr dir) return TRUE; return FALSE; } - + /* * Make each of the file names an automatic alias for each of the files. */ @@ -212,7 +212,7 @@ AddFileNameAliases(FontDirectoryPtr dir) renderer = FontFileMatchRenderer (fileName); if (!renderer) continue; - + len = strlen (fileName) - renderer->fileSuffixLen; if (len >= sizeof(copy)) continue;