summaryrefslogtreecommitdiff
path: root/legacy/ecore/src/lib/ecore_file/ecore_file.c
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2010-01-27 20:59:26 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2010-01-27 20:59:26 +0000
commitc3b33835ea47975189d9ef9f110d759b4453ad58 (patch)
tree95770a1e1075bb514e911e5b2c7a4bbc7dcab9f9 /legacy/ecore/src/lib/ecore_file/ecore_file.c
parentc6ca24216c7440ca818ebb8ce1e6bc1f0e1212d4 (diff)
switch to eina_strlcpy
SVN revision: 45653
Diffstat (limited to '')
-rw-r--r--legacy/ecore/src/lib/ecore_file/ecore_file.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file.c b/legacy/ecore/src/lib/ecore_file/ecore_file.c
index 8e37e42792..97544b8c80 100644
--- a/legacy/ecore/src/lib/ecore_file/ecore_file.c
+++ b/legacy/ecore/src/lib/ecore_file/ecore_file.c
@@ -6,7 +6,6 @@
6# include <config.h> 6# include <config.h>
7#endif 7#endif
8 8
9#include <Ecore_Str.h>
10#include <stdio.h> 9#include <stdio.h>
11#include <string.h> 10#include <string.h>
12#include <sys/types.h> 11#include <sys/types.h>
@@ -222,7 +221,7 @@ ecore_file_mksubdirs(const char *base, const char **subdirs)
222 return 0; 221 return 0;
223 222
224#ifndef HAVE_ATFILE_SOURCE 223#ifndef HAVE_ATFILE_SOURCE
225 baselen = ecore_strlcpy(buf, base, sizeof(buf)); 224 baselen = eina_strlcpy(buf, base, sizeof(buf));
226 if ((baselen < 1) || (baselen + 1 >= (int)sizeof(buf))) 225 if ((baselen < 1) || (baselen + 1 >= (int)sizeof(buf)))
227 return 0; 226 return 0;
228 227
@@ -244,7 +243,7 @@ ecore_file_mksubdirs(const char *base, const char **subdirs)
244 struct stat st; 243 struct stat st;
245 244
246#ifndef HAVE_ATFILE_SOURCE 245#ifndef HAVE_ATFILE_SOURCE
247 ecore_strlcpy(buf + baselen, *subdirs, sizeof(buf) - baselen); 246 eina_strlcpy(buf + baselen, *subdirs, sizeof(buf) - baselen);
248 if (stat(buf, &st) == 0) 247 if (stat(buf, &st) == 0)
249#else 248#else
250 if (fstatat(fd, *subdirs, &st, 0) == 0) 249 if (fstatat(fd, *subdirs, &st, 0) == 0)