From 01690f7df1206c0422a00dc3e5c27b83ff28cc3a Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Sat, 22 Sep 2012 17:13:48 +0000 Subject: [PATCH] Fix compilation error on Linux, introduced by r1994 (issue 506) git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2004 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io.c b/src/io.c index 20a7e78b..8c0e278c 100644 --- a/src/io.c +++ b/src/io.c @@ -339,7 +339,7 @@ int File_is_hidden(const char *fname, const char *full_name) // On linux/unix (default), files are considered hidden if their name // begins with a . // As a special case, we'll consider 'parent directory' (..) never hidden. - return fname[0]=='.' && !strcmp(entry->d_name, PARENT_DIR); + return fname[0]=='.' && !strcmp(fname, PARENT_DIR); #endif } // Taille de fichier, en octets