fix: create process copy kernel heap

This commit is contained in:
2025-11-11 18:56:12 +01:00
parent f9832ff151
commit 2945de2e29

View File

@ -20,7 +20,7 @@ struct pcb *create_process(uint8_t uid)
vfree(new_pcb);
return NULL;
}
memcpy(new_pcb->heap, current_pcb->heap, 4096);
memcpy(new_pcb->heap, current_pd, 4096);
new_pcb->next = new_pcb;
new_pcb->prev = new_pcb;