diff options
author | Hardeep Sidhu <dyp@pobox.com> | 2004-05-27 01:43:23 +0000 |
---|---|---|
committer | Hardeep Sidhu <dyp@pobox.com> | 2004-05-27 01:43:23 +0000 |
commit | 853ee1c0f34b2791c72f66b714e9183110c16329 (patch) | |
tree | a721fe2876dbad0d46aaec35d7eb770aa56acf91 /apps/filetypes.c | |
parent | 9d13207495f021043b90fd003cf87f95944d3874 (diff) | |
download | rockbox-853ee1c0f34b2791c72f66b714e9183110c16329.tar.gz rockbox-853ee1c0f34b2791c72f66b714e9183110c16329.zip |
Fixed bug in .rock extension check when scanning plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4709 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/filetypes.c')
-rw-r--r-- | apps/filetypes.c | 6 |
1 files changed, 3 insertions, 3 deletions
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) | |||
328 | } | 328 | } |
329 | 329 | ||
330 | /* filter out non rock files */ | 330 | /* filter out non rock files */ |
331 | if (!strcasecmp( | 331 | if (strcasecmp( |
332 | &entry->d_name[strlen(entry->d_name) - sizeof(ROCK_EXTENSION) -1], | 332 | &entry->d_name[strlen(entry->d_name) - sizeof(ROCK_EXTENSION) + 1], |
333 | ROCK_EXTENSION)) { | 333 | ROCK_EXTENSION)) { |
334 | continue; | 334 | continue; |
335 | } | 335 | } |
336 | 336 | ||