Commit 7142c81c authored by Max Kellermann's avatar Max Kellermann

DirectorySave: use Directory::GetName()

parent c0421a57
...@@ -52,10 +52,7 @@ directory_save(FILE *fp, const Directory &directory) ...@@ -52,10 +52,7 @@ directory_save(FILE *fp, const Directory &directory)
Directory *cur; Directory *cur;
directory_for_each_child(cur, directory) { directory_for_each_child(cur, directory) {
char *base = g_path_get_basename(cur->path); fprintf(fp, DIRECTORY_DIR "%s\n", cur->GetName());
fprintf(fp, DIRECTORY_DIR "%s\n", base);
g_free(base);
directory_save(fp, *cur); directory_save(fp, *cur);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment