c11.refactor (base should be mapped)

This commit is contained in:
2025-02-08 10:42:32 -05:00
parent 9afebbea54
commit 6dd05ebcd9
8 changed files with 435 additions and 182 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}