sysutils/am-utils: Fix amq -i timestamp segmentation violation
Bring in src/9ee9d3867243. MFH: 2024Q4
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
PORTNAME= am-utils
|
||||
PORTVERSION= 6.2
|
||||
PORTREVISION= 12
|
||||
PORTREVISION= 13
|
||||
PORTEPOCH= 1
|
||||
CATEGORIES= sysutils net
|
||||
MASTER_SITES= https://download.filesystems.org/am-utils/ \
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
diff --git amq/amq.c.orig amq/amq.c
|
||||
--- amq/amq.c.orig
|
||||
+++ 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,
|
||||
Reference in New Issue
Block a user