diff options
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r-- | kernel/features/load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/load.c b/kernel/features/load.c index 8aa28b8..d5dd839 100644 --- a/kernel/features/load.c +++ b/kernel/features/load.c @@ -52,7 +52,7 @@ void elf_load(char *path, struct proc *proc) if (phdr->type != PT_LOAD) continue; memcpy((void *)phdr->vaddr, h + phdr->offset, phdr->filesz); - memset((void *)(phdr->vaddr + phdr->filesz), phdr->memsz - phdr->filesz, 0); + memset((void *)(phdr->vaddr + phdr->filesz), 0, phdr->memsz - phdr->filesz); } u32 stack = (u32)malloc(0x1000) + 0x1000; |