Allocator memes
This commit is contained in:
@@ -833,7 +833,7 @@ API Process SpawnProcess(String command_line, String working_dir, String write_s
|
||||
char *env = NULL;
|
||||
if (enviroment.len) {
|
||||
Int size = GetSize(enviroment) + enviroment.len + 1;
|
||||
env = (char *)PushSize(scratch, size);
|
||||
env = AllocArray(scratch, char, size);
|
||||
Int i = 0;
|
||||
For(enviroment) {
|
||||
MemoryCopy(env + i, it.data, it.len);
|
||||
|
||||
Reference in New Issue
Block a user