diff --git a/src/folder.c b/src/folder.c index 82c8727b8..117a994f9 100644 --- a/src/folder.c +++ b/src/folder.c @@ -217,7 +217,7 @@ char **scan_directory (const char *path) #endif - if ((strncmp (de->d_name, ".", strlen (de->d_name)) == 0) || (strncmp (de->d_name, "..", strlen (de->d_name)) == 0)) continue; + if (de->d_name[0] == '.') continue; char *path_file;