Enlightenment CVS committal Author : codewarrior Project : e17 Module : proto
Dir : e17/proto/exhibit/src/bin Modified Files: exhibit_main.c Log Message: exhibit /path/to/image.jpg - take symlinks into account =================================================================== RCS file: /cvs/e/e17/proto/exhibit/src/bin/exhibit_main.c,v retrieving revision 1.76 retrieving revision 1.77 diff -u -3 -r1.76 -r1.77 --- exhibit_main.c 2 Sep 2006 14:13:59 -0000 1.76 +++ exhibit_main.c 2 Sep 2006 14:33:35 -0000 1.77 @@ -629,7 +629,7 @@ _ex_main_window_show(char *dir) { Ex_Tab *tab; - char *file; + char file[PATH_MAX]; char *homedir; const char **dnd_types; int dnd_types_num; @@ -667,7 +667,6 @@ if(!ecore_file_is_dir(e->options->fav_path)) ecore_file_mkdir(e->options->fav_path); - file = NULL; tab = NULL; e->win = etk_window_new(); @@ -858,7 +857,7 @@ dir2 = ecore_file_get_dir(dir); tab = _ex_tab_new(e, dir2); E_FREE(dir2); - file = strdup(dir); + realpath(dir, file); } else tab = _ex_tab_new(e, "."); @@ -916,7 +915,6 @@ _ex_tab_select(tab); etk_widget_show_all(e->win); - E_FREE(file); } int ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs