diff --git a/lib/ipc/tc.c b/lib/ipc/tc.c index 29d3affda..4361800bc 100644 --- a/lib/ipc/tc.c +++ b/lib/ipc/tc.c @@ -63,7 +63,8 @@ usage(int ret) static void reply(void *ctx, int errorcode, heim_idata *rep, heim_icred cred) { - printf("got reply errorcode %d, rep %.*s\n", errorcode, rep->length, rep->data); + printf("got reply errorcode %d, rep %.*s\n", errorcode, + rep->length < INT_MAX ? rep->length : INT_MAX, rep->data); heim_ipc_semaphore_signal((heim_isemaphore)ctx); /* tell caller we are done */ }