Fix memory corruption
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user