Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/filesystem/directory.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/filesystem/directory.cc b/src/filesystem/directory.cc
index 7339f17..af1c58b 100644
--- a/src/filesystem/directory.cc
+++ b/src/filesystem/directory.cc
@@ -56,7 +56,7 @@ void Directory::read()
if (directory_handle) {
while ((directory_entry = readdir(directory_handle))) {
- std::string file_path(directory_location);
+ std::string file_path(directory_location.c_str());
file_path += '/';
file_path.append(directory_entry->d_name);
@@ -71,6 +71,7 @@ void Directory::read()
continue;
}
+ file_path.assign(directory_entry->d_name);
directory_filenames.push_back(file_path);
}
}