efreet: check for subpath

Need to check if the path we want to add is a subpath of an already
added path.

SVN revision: 57407
This commit is contained in:
Sebastian Dransfeld 2011-02-28 10:50:16 +00:00
parent d2dfe7422a
commit 494c6c6d4f
1 changed files with 1 additions and 2 deletions

View File

@ -865,8 +865,7 @@ efreet_cache_desktop_add(Efreet_Desktop *desktop)
for (i = 0; i < arr->array_count; i++)
{
/* Check if we already have this dir in cache */
/* TODO: Need to check if p is a subdir */
if (!strcmp(p, arr->array[i]))
if (!strncmp(p, arr->array[i], strlen(arr->array[i])))
return;
}
}