[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH1/4] fully enable rpctrace to trace multitask programs.
From: |
Da Zheng |
Subject: |
[PATCH1/4] fully enable rpctrace to trace multitask programs. |
Date: |
Mon, 20 Jul 2009 19:38:27 +0800 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
This is the first patch that fix bug #20612.
Zheng Da
2009-07-20 Zheng Da <zhengda1936@gmail.com>
fix a bug #20612
* rpctrace.c (print_contents): Check the number of elements in the port
array.
diff --git a/utils/rpctrace.c b/utils/rpctrace.c
index d80f41d..b7379a7 100644
--- a/utils/rpctrace.c
+++ b/utils/rpctrace.c
@@ -631,7 +631,7 @@ print_contents (mach_msg_header_t *inp,
else
type->msgt_name = name;
}
- else if (newtypes[0] != name)
+ else if (nelt > 0 && newtypes[0] != name)
if (type->msgt_longform)
lt->msgtl_name = newtypes[0];
else