From 853ee1c0f34b2791c72f66b714e9183110c16329 Mon Sep 17 00:00:00 2001 From: Hardeep Sidhu Date: Thu, 27 May 2004 01:43:23 +0000 Subject: Fixed bug in .rock extension check when scanning plugins git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4709 a1c6a512-1295-4272-9138-f99709370657 --- apps/filetypes.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/filetypes.c') 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; } -- cgit v1.2.3