Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_fileman_smart.c Log Message: Use _e_fm_file_fullname, and make _e_fm_file_fullname return the correct fullname when in root dir. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_fileman_smart.c,v retrieving revision 1.12 retrieving revision 1.13 diff -u -3 -r1.12 -r1.13 --- e_fileman_smart.c 10 Oct 2005 20:46:22 -0000 1.12 +++ e_fileman_smart.c 10 Oct 2005 20:49:26 -0000 1.13 @@ -2098,12 +2098,7 @@ } else { - char path[PATH_MAX]; - if (!strcmp(file->sd->dir, "/")) - snprintf(path, sizeof(path), "/%s", file->dir_entry->d_name); - else - snprintf(path, sizeof(path), "%s/%s", file->sd->dir, file->dir_entry->d_name); - fullname = strdup(path); + fullname = _e_fm_file_fullname(file); } /* FIXME: we need to fix this, uber hack alert */ @@ -2646,7 +2641,10 @@ { char fullname[PATH_MAX]; - snprintf(fullname, sizeof(fullname), "%s/%s", file->sd->dir, file->dir_entry->d_name); + if (!strcmp(file->sd->dir, "/")) + snprintf(fullname, sizeof(fullname), "/%s", file->dir_entry->d_name); + else + snprintf(fullname, sizeof(fullname), "%s/%s", file->sd->dir, file->dir_entry->d_name); return strdup(fullname); } ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs