aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r--kernel/features/load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/load.c b/kernel/features/load.c
index 1eb34d3..f7fc1a5 100644
--- a/kernel/features/load.c
+++ b/kernel/features/load.c
@@ -22,7 +22,7 @@ int bin_load(char *path, struct proc *proc)
proc->regs.ebp = (u32)stack;
proc->regs.useresp = (u32)stack;
proc->regs.eip = (u32)data;
- strcpy(proc->name, path + 1);
+ strcpy(proc->name, path);
return data ? 0 : 1;
}