alloca - not strdupa.

SVN revision: 54068
This commit is contained in:
Carsten Haitzler 2010-10-31 12:53:50 +00:00
parent 57aa3f4147
commit 0d32e98d24
1 changed files with 2 additions and 1 deletions

View File

@ -36,7 +36,8 @@ _ecore_file_path_from_env(const char *env)
if (!env_path)
return path;
env_path = strdupa(env_path);
env_path = alloca(strlen(env_path) + 1);
strcpy(env_path, env);
last = env_path;
for (p = env_path; *p; p++)
{