mirror of
https://github.com/Ed94/metadesk.git
synced 2026-06-17 01:22:25 -07:00
c11.refactor (base should be mapped)
This commit is contained in:
@@ -295,7 +295,7 @@ os_full_path_from_path_alloc(AllocatorInfo ainfo, String8 path)
|
||||
realpath((char *)path_copy.str, buffer);
|
||||
}
|
||||
scratch_end(scratch);
|
||||
String8 result = str8_copy(ainfo, str8_cstring(buffer));
|
||||
String8 result = alloc_str8_copy(ainfo, str8_cstring(buffer));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ os_get_current_path(Arena* arena) {
|
||||
inline String8
|
||||
os_get_current_path(AllocatorInfo ainfo) {
|
||||
char* cwdir = getcwd(0, 0);
|
||||
String8 string = str8_copy(ainfo, str8_cstring(cwdir));
|
||||
String8 string = alloc_str8_copy(ainfo, str8_cstring(cwdir));
|
||||
return string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user