diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-02-27 16:07:22 -0500 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-03-02 17:22:43 -0500 |
| commit | 675bffce886ff161cf05adaf2e9f3c8429457b64 (patch) | |
| tree | bf0e73f17fbf866ac792d84877a92434dfc8a11d /core/os | |
| parent | 7d1fcfa09be96b0f6864996b0554b1355e34be35 (diff) | |
Add missing allocator in `os2.file_info_clone`
Diffstat (limited to 'core/os')
| -rw-r--r-- | core/os/os2/stat.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/os/os2/stat.odin b/core/os/os2/stat.odin index b53ebb3ab..d0a5a659d 100644 --- a/core/os/os2/stat.odin +++ b/core/os/os2/stat.odin @@ -24,7 +24,7 @@ File_Info :: struct { @(require_results) file_info_clone :: proc(fi: File_Info, allocator: runtime.Allocator) -> (cloned: File_Info, err: runtime.Allocator_Error) { cloned = fi - cloned.fullpath = strings.clone(fi.fullpath) or_return + cloned.fullpath = strings.clone(fi.fullpath, allocator) or_return cloned.name = filepath.base(cloned.fullpath) return } |