aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/load.c
diff options
context:
space:
mode:
authorMarvin Borner2021-01-21 16:14:56 +0100
committerMarvin Borner2021-01-21 16:14:56 +0100
commitef407d1e965674c5278daeb25a72acf446ec3223 (patch)
tree941d61b0fff4682bba57e056fcee93059a9cd4b8 /kernel/features/load.c
parent7442dc40a12bd61d6a77fafbc1ea031a2b51937a (diff)
Fixed some dumb bugs
Diffstat (limited to 'kernel/features/load.c')
-rw-r--r--kernel/features/load.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/features/load.c b/kernel/features/load.c
index 743c009..3e1ea8e 100644
--- a/kernel/features/load.c
+++ b/kernel/features/load.c
@@ -21,10 +21,10 @@ int bin_load(char *path, struct proc *proc)
vfs_stat(path, &s);
char *data = malloc(s.size);
if (!vfs_read(path, data, 0, s.size))
- return 0;
+ return 1;
strcpy(proc->name, path);
proc_load(proc, data);
- return 1;
+ return 0;
}