From f2c33e9bc0eb21277df08eb4296f01f6791f4ae9 Mon Sep 17 00:00:00 2001 From: Miculcy Brian Date: Tue, 9 Nov 2010 14:09:16 +0000 Subject: [PATCH] Fix _ecore_file_path_from_env(), wrong strcpy source. SVN revision: 54366 --- legacy/ecore/src/lib/ecore_file/ecore_file_path.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/legacy/ecore/src/lib/ecore_file/ecore_file_path.c b/legacy/ecore/src/lib/ecore_file/ecore_file_path.c index 3d38d5d8a4..983aa49351 100644 --- a/legacy/ecore/src/lib/ecore_file/ecore_file_path.c +++ b/legacy/ecore/src/lib/ecore_file/ecore_file_path.c @@ -30,14 +30,14 @@ Eina_List * _ecore_file_path_from_env(const char *env) { Eina_List *path = NULL; - char *env_path, *p, *last; + char *env_tmp, *env_path, *p, *last; - env_path = getenv(env); - if (!env_path) + env_tmp = getenv(env); + if (!env_tmp) return path; - env_path = alloca(strlen(env_path) + 1); - strcpy(env_path, env); + env_path = alloca(strlen(env_tmp) + 1); + strcpy(env_path, env_tmp); last = env_path; for (p = env_path; *p; p++) {