Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Jun 2018 01:33:04 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r335355 - head/contrib/amd/amq
Message-ID:  <201806190133.w5J1X4G1018987@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Tue Jun 19 01:33:03 2018
New Revision: 335355
URL: https://svnweb.freebsd.org/changeset/base/335355

Log:
  Fix amq -i timestamp segmentation violation.
  
  MFC after:	1 week

Modified:
  head/contrib/amd/amq/amq.c

Modified: head/contrib/amd/amq/amq.c
==============================================================================
--- head/contrib/amd/amq/amq.c	Tue Jun 19 01:32:33 2018	(r335354)
+++ head/contrib/amd/amq/amq.c	Tue Jun 19 01:33:03 2018	(r335355)
@@ -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,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201806190133.w5J1X4G1018987>