2004-10-19 [colin] 0.9.12cvs128.1
[claws.git] / src / addrbook.c
index b7ced22f79988d72dbd31f01d8f4d51b35bef3cb..7235b4935373fa9a71d4542395634a5f89d36e99 100644 (file)
@@ -1935,7 +1935,7 @@ GList *addrbook_get_bookfile_list(AddressBookFile *book) {
                strcpy(buf, adbookdir);
                strcat(buf, entry->d_name);
                stat(buf, &statbuf);
-               if (S_IFREG & statbuf.st_mode) {
+               if (S_ISREG(statbuf.st_mode)) {
                        if (strncmp(
                                entry->d_name,
                                ADDRBOOK_PREFIX, lenpre) == 0)