From 2af08b5611bc4d7e33516666e967b2e0968532e1 Mon Sep 17 00:00:00 2001 From: raster Date: Sun, 31 Oct 2010 12:53:50 +0000 Subject: [PATCH] alloca - not strdupa. git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@54068 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_file/ecore_file_path.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_file/ecore_file_path.c b/src/lib/ecore_file/ecore_file_path.c index 376de24..3d38d5d 100644 --- a/src/lib/ecore_file/ecore_file_path.c +++ b/src/lib/ecore_file/ecore_file_path.c @@ -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++) { -- 2.7.4