From d55432497816d2309c98c18f6dd3bfbf64abf21c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sun, 4 Aug 2002 22:02:59 +0000 Subject: 2002-07-31 Marcus Brinkmann * routine.c (rtFindSize): Always add sizeof_mach_msg_type_t to SIZE for args not in long form, irregardless of the itSize. --- routine.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'routine.c') diff --git a/routine.c b/routine.c index 15ff672..c34b91f 100644 --- a/routine.c +++ b/routine.c @@ -377,8 +377,7 @@ rtFindSize(const argument_t *args, u_int mask) size = (size + word_size-1) & ~(word_size-1); size += sizeof_mach_msg_type_long_t; } else { - register bs = (it->itSize / 8); /* in bytes */ - size += (bs > sizeof_mach_msg_type_t) ? bs : sizeof_mach_msg_type_t; + size += sizeof_mach_msg_type_t; } size += it->itMinTypeSize; -- cgit v1.2.3