Ecore_File: Fix readlink usage in ecore_file.

SVN revision: 76330
This commit is contained in:
Vincent Torri 2012-09-08 06:21:42 +00:00
parent 312066e91b
commit 849362bd06
2 changed files with 5 additions and 1 deletions

View File

@ -919,3 +919,7 @@
2012-09-07 Christopher Michael
* Fix ecore_x_randr to actually return outputs properly.
2012-09-08 Vincent Torri
* Fix readlink usage in ecore_file.

View File

@ -404,7 +404,7 @@ ecore_file_recursive_rm(const char *dir)
struct stat st;
int ret;
if (readlink(dir, buf, sizeof(buf)) > 0)
if (readlink(dir, buf, sizeof(buf) - 1) > 0)
return ecore_file_unlink(dir);
ret = stat(dir, &st);