From 404903b033a58e3724b718773d750009e26a8d26 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 11 May 2007 20:10:37 +0000 Subject: 2007-05-11 Joel Sherrill * score/src/coremsgseize.c: A blocking sender's message size was pulled out of the wrong field in the Wait information structure. * score/src/objectallocate.c: With the new optional manager support, we only stub out the initialization. This makes it possible to attempt to create an object with the information structure only initialized with all zeros. This ensures we return an error cleanly in this case. --- cpukit/score/src/coremsgseize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpukit/score/src/coremsgseize.c') diff --git a/cpukit/score/src/coremsgseize.c b/cpukit/score/src/coremsgseize.c index a71f1de794..fc11e3e80d 100644 --- a/cpukit/score/src/coremsgseize.c +++ b/cpukit/score/src/coremsgseize.c @@ -7,7 +7,7 @@ * This core object provides task synchronization and communication functions * via messages passed to queue objects. * - * COPYRIGHT (c) 1989-1999. + * COPYRIGHT (c) 1989-2007. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be @@ -107,7 +107,7 @@ void _CORE_message_queue_Seize( */ the_message->priority = the_thread->Wait.count; - the_message->Contents.size = (uint32_t )the_thread->Wait.return_argument_1; + the_message->Contents.size = (uint32_t)the_thread->Wait.option; _CORE_message_queue_Copy_buffer( the_thread->Wait.return_argument, the_message->Contents.buffer, -- cgit v1.2.3