forked from enlightenment/efl
Fix _ecore_file_path_from_env(), wrong strcpy source.
SVN revision: 54366
This commit is contained in:
parent
2f30d52b93
commit
f2c33e9bc0
|
@ -30,14 +30,14 @@ Eina_List *
|
||||||
_ecore_file_path_from_env(const char *env)
|
_ecore_file_path_from_env(const char *env)
|
||||||
{
|
{
|
||||||
Eina_List *path = NULL;
|
Eina_List *path = NULL;
|
||||||
char *env_path, *p, *last;
|
char *env_tmp, *env_path, *p, *last;
|
||||||
|
|
||||||
env_path = getenv(env);
|
env_tmp = getenv(env);
|
||||||
if (!env_path)
|
if (!env_tmp)
|
||||||
return path;
|
return path;
|
||||||
|
|
||||||
env_path = alloca(strlen(env_path) + 1);
|
env_path = alloca(strlen(env_tmp) + 1);
|
||||||
strcpy(env_path, env);
|
strcpy(env_path, env_tmp);
|
||||||
last = env_path;
|
last = env_path;
|
||||||
for (p = env_path; *p; p++)
|
for (p = env_path; *p; p++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue