From ea9802745f5ed5f050c943abd0427db2239ab2ec Mon Sep 17 00:00:00 2001 From: handyande Date: Tue, 23 Dec 2003 00:32:05 +0000 Subject: [PATCH] oopsie\! SVN revision: 8189 --- legacy/ecore/src/bin/ecore_config_client.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/legacy/ecore/src/bin/ecore_config_client.c b/legacy/ecore/src/bin/ecore_config_client.c index 31c335b740..0aa81b3ca2 100644 --- a/legacy/ecore/src/bin/ecore_config_client.c +++ b/legacy/ecore/src/bin/ecore_config_client.c @@ -77,8 +77,8 @@ int is_dir(const char *dir) { int ex_ipc_init(ex_ipc_server_list **srv_list,char *pipe_name,connstate *cs) { int global, port, connected; struct stat st; - char *p, *str; - char buf[PATH_MAX]; + char *p; + char str[PATH_MAX], buf[PATH_MAX]; DIR *dir; struct dirent *socket; Ecore_Ipc_Server *tmp_sock; @@ -95,7 +95,6 @@ int ex_ipc_init(ex_ipc_server_list **srv_list,char *pipe_name,connstate *cs) { return ECORE_CONFIG_ERR_IGNORED; if((p=getenv("HOME"))) { /* debug-only ### FIXME */ - str=malloc(1000*sizeof(char)); sprintf(str,"%s/.ecore/%s/.global",p,pipe_name); if (stat(str, &st)) global=FALSE;