summaryrefslogtreecommitdiff
path: root/src/lib/ecore_file/ecore_file.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/ecore_file/ecore_file.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/ecore_file/ecore_file.c b/src/lib/ecore_file/ecore_file.c
index f5c15b6e60..14c1934853 100644
--- a/src/lib/ecore_file/ecore_file.c
+++ b/src/lib/ecore_file/ecore_file.c
@@ -631,12 +631,12 @@ ecore_file_can_exec(const char *file)
631} 631}
632 632
633EAPI char * 633EAPI char *
634ecore_file_readlink(const char *lnk) 634ecore_file_readlink(const char *link)
635{ 635{
636 char buf[PATH_MAX]; 636 char buf[PATH_MAX];
637 int count; 637 int count;
638 638
639 if ((count = readlink(lnk, buf, sizeof(buf) - 1)) < 0) return NULL; 639 if ((count = readlink(link, buf, sizeof(buf) - 1)) < 0) return NULL;
640 buf[count] = 0; 640 buf[count] = 0;
641 return strdup(buf); 641 return strdup(buf);
642} 642}