aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r--kernel/features/proc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c
index c0216bc..76da36d 100644
--- a/kernel/features/proc.c
+++ b/kernel/features/proc.c
@@ -90,7 +90,7 @@ void proc_send(struct proc *src, struct proc *dest, u32 type, void *data)
struct proc_message *msg = malloc(sizeof(*msg));
msg->src = src;
msg->dest = dest;
- msg->msg = malloc(sizeof(struct message));
+ msg->msg = malloc(sizeof(*msg->msg));
msg->msg->src = (int)src->pid;
msg->msg->type = (int)type;
msg->msg->data = data;