aboutsummaryrefslogtreecommitdiff
path: root/src/path.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/path.cpp')
-rw-r--r--src/path.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/path.cpp b/src/path.cpp
index 742bba7f8..b07f20870 100644
--- a/src/path.cpp
+++ b/src/path.cpp
@@ -407,7 +407,7 @@ gb_internal ReadDirectoryError read_directory(String path, Array<FileInfo> *fi)
i64 size = dir_stat.st_size;
FileInfo info = {};
- info.name = name;
+ info.name = copy_string(a, name);
info.fullpath = path_to_full_path(a, filepath);
info.size = size;
array_add(fi, info);