eina: correctly prepare path before sanitizing it.

This commit is contained in:
Cedric BAIL 2015-10-28 06:45:10 +01:00
parent 046d806388
commit a089818335
1 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,10 @@ _eina_file_escape(char *path, size_t len)
if (!result)
return NULL;
#ifdef _WIN32
EVIL_PATH_SEP_WIN32_TO_UNIX(path);
#endif
while ((p = strchr(p, '/')))
{
// remove double `/'