From 6a12fc0acb3afb654ba5e6efdeb28b943e2efd3e Mon Sep 17 00:00:00 2001 From: zoulasc Date: Thu, 31 Mar 2016 14:56:53 -0400 Subject: [PATCH] Fix SEGV on amq entries that print times. --- amq/amq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amq/amq.c b/amq/amq.c index dc5fe025..04f9e4d6 100644 --- a/amq/amq.c +++ b/amq/amq.c @@ -79,7 +79,7 @@ enum show_opt { static void time_print(time_type tt) { - time_t t = (time_t)*tt; + time_t t = (time_t)(intptr_t)tt; struct tm *tp = localtime(&t); printf("%02d/%02d/%04d %02d:%02d:%02d", tp->tm_mon + 1, tp->tm_mday, -- 2.34.1