From 06773bba48d950eb694356ac74e9dc79202dad3d Mon Sep 17 00:00:00 2001 From: Nicolas Williams Date: Fri, 28 Dec 2018 01:05:43 -0600 Subject: [PATCH] Fix warning in lib/ipc/tc.c --- lib/ipc/tc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ }