diff --git a/apps/filetypes.c b/apps/filetypes.c index 661defa337..b9f5dd1935 100644 --- a/apps/filetypes.c +++ b/apps/filetypes.c @@ -328,9 +328,9 @@ static void scan_plugins(void) } /* filter out non rock files */ - if (!strcasecmp( - &entry->d_name[strlen(entry->d_name) - sizeof(ROCK_EXTENSION) -1], - ROCK_EXTENSION)) { + if (strcasecmp( + &entry->d_name[strlen(entry->d_name) - sizeof(ROCK_EXTENSION) + 1], + ROCK_EXTENSION)) { continue; }