Fixed bug in .rock extension check when scanning plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4709 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9d13207495
commit
853ee1c0f3
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue