diff options
Diffstat (limited to 'src/kernel/user/syscall.c')
-rw-r--r-- | src/kernel/user/syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/user/syscall.c b/src/kernel/user/syscall.c index 3def3b5..3041c6d 100644 --- a/src/kernel/user/syscall.c +++ b/src/kernel/user/syscall.c @@ -237,9 +237,9 @@ static uint32_t readdir_sc(sc_args_t args) { fs_handle_t *h = proc_read_fd(current_process(), args.a); if (h == 0) return false; - dirent_t *o = (dirent_t*)args.b; + dirent_t *o = (dirent_t*)args.c; probe_for_write(o, sizeof(dirent_t)); - return file_readdir(h, o); + return file_readdir(h, args.b, o); } static uint32_t stat_open_sc(sc_args_t args) { |