From 06036def7ca0f84f858979cef60480bb0b98d4d4 Mon Sep 17 00:00:00 2001 From: Stephan Zeisberg Date: Wed, 27 Oct 2010 21:54:08 +0200 Subject: [PATCH] fixed bug in msg_reply function --- 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();