Simplify.

SVN revision: 17407
This commit is contained in:
sebastid 2005-10-10 20:46:22 +00:00 committed by sebastid
parent 0433790aaf
commit 4a482ed712
1 changed files with 3 additions and 5 deletions

View File

@ -2644,13 +2644,11 @@ _e_fm_file_exec(E_Fileman_File *file)
static char *
_e_fm_file_fullname(E_Fileman_File *file)
{
char *fullname;
char fullname[PATH_MAX];
fullname = E_NEW(char, PATH_MAX);
if (fullname)
snprintf(fullname, PATH_MAX, "%s/%s", file->sd->dir, file->dir_entry->d_name);
snprintf(fullname, sizeof(fullname), "%s/%s", file->sd->dir, file->dir_entry->d_name);
return fullname;
return strdup(fullname);
}
static char *