diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-03-13 12:23:28 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-13 12:23:28 +0000 |
| commit | d62c92f5a9891267e6ee2c121085815ce6734cf6 (patch) | |
| tree | 8fa087468d3ad93c8b925cac5566a741813dc9ba /src/path.cpp | |
| parent | 5c1646a6b3b9c721a095ea3e160ece9138126faf (diff) | |
| parent | b543be0d155412c2270ae9cec3f0c85d558ac07a (diff) | |
Merge pull request #3267 from harold-b/copy-dirent-path
Retain copies of `dirent->name` for .odin files when using `read_directory`
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); |