summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2012-09-08 06:21:42 +0000
committerVincent Torri <vincent.torri@gmail.com>2012-09-08 06:21:42 +0000
commit849362bd066901c68c668d304578760e8a941196 (patch)
tree28d841b18bafdb2b79f8e1d02908542f8e21394e
parent312066e91b9064f529f297d8d34e1924f92f6656 (diff)
Ecore_File: Fix readlink usage in ecore_file.
SVN revision: 76330
-rw-r--r--legacy/ecore/ChangeLog4
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/legacy/ecore/ChangeLog b/legacy/ecore/ChangeLog
index f529796850..710f492f27 100644
--- a/legacy/ecore/ChangeLog
+++ b/legacy/ecore/ChangeLog
@@ -919,3 +919,7 @@
9192012-09-07 Christopher Michael 9192012-09-07 Christopher Michael
920 920
921 * Fix ecore_x_randr to actually return outputs properly. 921 * Fix ecore_x_randr to actually return outputs properly.
922
9232012-09-08 Vincent Torri
924
925 * Fix readlink usage in ecore_file.
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c
index fd06f7dc52..cc0be5449d 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -404,7 +404,7 @@ ecore_file_recursive_rm(const char *dir)
404 struct stat st; 404 struct stat st;
405 int ret; 405 int ret;
406 406
407 if (readlink(dir, buf, sizeof(buf)) > 0) 407 if (readlink(dir, buf, sizeof(buf) - 1) > 0)
408 return ecore_file_unlink(dir); 408 return ecore_file_unlink(dir);
409 409
410 ret = stat(dir, &st); 410 ret = stat(dir, &st);