elm_code: Fix usage of basename

This commit is contained in:
Andy Williams 2017-12-31 15:28:23 +00:00
parent 541d6527fa
commit 0a068ac549
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ EAPI const char *elm_code_file_filename_get(Elm_Code_File *file)
if (!file->file)
return NULL;
return basename((char *)eina_file_filename_get(file->file));
return ecore_file_file_get(eina_file_filename_get(file->file));
}
EAPI const char *elm_code_file_path_get(Elm_Code_File *file)

View File

@ -19,7 +19,7 @@ START_TEST (elm_code_file_load)
file = elm_code_file_open(code, path);
realpath(path, real);
ck_assert_str_eq(basename(path), elm_code_file_filename_get(file));
ck_assert_str_eq(ecore_file_file_get(path), elm_code_file_filename_get(file));
ck_assert_str_eq(real, elm_code_file_path_get(file));
elm_code_file_close(file);
elm_code_free(code);