diff --git a/src/multitasking/process.c b/src/multitasking/process.c index 332e0f0..3d4606c 100644 --- a/src/multitasking/process.c +++ b/src/multitasking/process.c @@ -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;