Fix memory corruption

This commit is contained in:
Krzosa Karol
2024-07-28 20:49:40 +02:00
parent 77a6cc5e53
commit 12b459507a
5 changed files with 19 additions and 15 deletions

View File

@@ -270,7 +270,7 @@ String GetExePath(Allocator allocator) {
}
String GetExeDir(Allocator allocator) {
Scratch scratch;
Scratch scratch((Arena *)allocator.object);
String path = GetExePath(scratch);
path = ChopLastSlash(path);
path = Copy(allocator, path);