aboutsummaryrefslogtreecommitdiff
path: root/src/lib/libkogata/syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libkogata/syscall.c')
-rw-r--r--src/lib/libkogata/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libkogata/syscall.c b/src/lib/libkogata/syscall.c
index 67f95fd..bf0b35e 100644
--- a/src/lib/libkogata/syscall.c
+++ b/src/lib/libkogata/syscall.c
@@ -182,7 +182,7 @@ bool bind_make_fs(pid_t pid, const char* name, const char* driver, fd_t source,
return call(SC_BIND_MAKE_FS, (uint32_t)&args, 0, 0, 0, 0);
}
bool bind_fd(pid_t pid, fd_t new_fd, fd_t fd) {
- return call(SC_BIND_FD, new_fd, fd, 0, 0, 0);
+ return call(SC_BIND_FD, pid, new_fd, fd, 0, 0);
}
bool proc_exec(pid_t pid, const char* file) {
return call(SC_PROC_EXEC, pid, (uint32_t)file, strlen(file), 0, 0);