Skip to content

Commit

Permalink
Fixes syscall.c, IPC copy data bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
HAKarlsson committed Jan 16, 2024
1 parent 79d2562 commit e9ea976
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/src/syscall.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ proc_t *handle_sock_send(proc_t *const p, const sys_args_t *args)
const ipc_msg_t msg = {
.cap_buf = ctable_get(p->pid, args->sock.cap_idx),
.send_cap = args->sock.send_cap,
.data = {args->sock.data[0], args->sock.data[1], args->sock.data[1],
.data = {args->sock.data[0], args->sock.data[1], args->sock.data[2],
args->sock.data[3]},
};
proc_t *next = p;
Expand Down Expand Up @@ -618,7 +618,7 @@ proc_t *handle_sock_sendrecv(proc_t *const p, const sys_args_t *args)
const ipc_msg_t msg = {
.cap_buf = ctable_get(p->pid, args->sock.cap_idx),
.send_cap = args->sock.send_cap,
.data = {args->sock.data[0], args->sock.data[1], args->sock.data[1],
.data = {args->sock.data[0], args->sock.data[1], args->sock.data[2],
args->sock.data[3]},
};
proc_t *next = p;
Expand Down

0 comments on commit e9ea976

Please sign in to comment.