diff options
-rw-r--r-- | utils/rpctrace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/rpctrace.c b/utils/rpctrace.c index 276377c0..25d9bc6e 100644 --- a/utils/rpctrace.c +++ b/utils/rpctrace.c @@ -1524,7 +1524,8 @@ print_data (mach_msg_type_name_t type, the first character that has not yet been printed. */ const char *p, *q; p = q = (const char *) data; - while (q && *q && q - (const char *) data < (int) (nelt * eltsize)) + while (q && q - (const char *) data < (int) (nelt * eltsize) + && (*q || type == MACH_MSG_TYPE_CHAR)) { if (isgraph (*q) || *q == ' ') { |