aboutsummaryrefslogtreecommitdiff
path: root/src/path.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-03-13 15:12:19 +0000
committergingerBill <bill@gingerbill.org>2024-03-13 15:12:19 +0000
commit4aec2de7bd186bbdfe9aa0f890f9a276480c80c2 (patch)
tree7ace46f2786a6a823e12358d53988392593617cb /src/path.cpp
parentac10f504e467053861fcf00b86bbb2904ddadafe (diff)
parentd62c92f5a9891267e6ee2c121085815ce6734cf6 (diff)
Merge branch 'master' of https://github.com/odin-lang/Odin
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);