From 7a8a07fe089602a890c2704e172454a34b0dbb41 Mon Sep 17 00:00:00 2001 From: Kaspar Schleiser <kaspar@schleiser.de> Date: Thu, 28 Oct 2010 10:12:45 +0200 Subject: [PATCH] * msg: fix msg_reply --- core/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/msg.c b/core/msg.c index 373309603d..707f2effd2 100644 --- a/core/msg.c +++ b/core/msg.c @@ -133,7 +133,7 @@ int msg_reply(msg *m, msg *reply) { DEBUG("%s: msg_reply(): direct msg copy.\n", fk_thread->name); /* copy msg to target */ msg* target_message = (msg*)target->wait_data; - *target_message = *m; + *target_message = *reply; sched_set_status(target, STATUS_PENDING); restoreIRQ(state); fk_yield(); -- GitLab