config: Correct project name comparison for substrings

This commit is contained in:
Andy Williams 2017-06-29 21:18:15 +00:00
parent 09da41eb8e
commit a34a71f8f6
1 changed files with 2 additions and 1 deletions

View File

@ -353,7 +353,8 @@ _edi_config_project_add(const char *path)
EINA_LIST_FOREACH_SAFE(_edi_config->projects, list, next, project)
{
if (!strncmp(project->path, path, strlen(project->path)))
if (strlen(project->path) == strlen(path) &&
!strncmp(project->path, path, strlen(project->path)))
_edi_config->projects = eina_list_remove_list(_edi_config->projects, list);
}