Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2018 19:42:56 +0000 (UTC)
From:      Cy Schubert <cy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r335734 - in stable: 10/contrib/amd/amq 11/contrib/amd/amq
Message-ID:  <201806271942.w5RJguX0058790@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: cy
Date: Wed Jun 27 19:42:55 2018
New Revision: 335734
URL: https://svnweb.freebsd.org/changeset/base/335734

Log:
  MFC r335355:
  
  Fix amq -i timestamp segmentation violation.

Modified:
  stable/10/contrib/amd/amq/amq.c
Directory Properties:
  stable/10/   (props changed)

Changes in other areas also in this revision:
Modified:
  stable/11/contrib/amd/amq/amq.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/10/contrib/amd/amq/amq.c
==============================================================================
--- stable/10/contrib/amd/amq/amq.c	Wed Jun 27 19:29:15 2018	(r335733)
+++ stable/10/contrib/amd/amq/amq.c	Wed Jun 27 19:42:55 2018	(r335734)
@@ -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?201806271942.w5RJguX0058790>