diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-13 15:12:19 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-13 15:12:19 +0000 |
| commit | 4aec2de7bd186bbdfe9aa0f890f9a276480c80c2 (patch) | |
| tree | 7ace46f2786a6a823e12358d53988392593617cb /src/path.cpp | |
| parent | ac10f504e467053861fcf00b86bbb2904ddadafe (diff) | |
| parent | d62c92f5a9891267e6ee2c121085815ce6734cf6 (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/path.cpp')
| -rw-r--r-- | src/path.cpp | 2 |
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); |