64bit time_t.

This commit is contained in:
ajacoutot
2025-09-17 16:30:46 +00:00
parent 3ea539c8e1
commit 684600f2c0
2 changed files with 21 additions and 0 deletions
+1
View File
@@ -3,6 +3,7 @@ COMMENT= GNU Transport Layer Security library
V= 3.8.10
DISTNAME= gnutls-${V}
EXTRACT_SUFX= .tar.xz
REVISION= 0
CATEGORIES= security
@@ -0,0 +1,20 @@
64bit time_t
Index: lib/x509/output.c
--- lib/x509/output.c.orig
+++ lib/x509/output.c
@@ -477,12 +477,12 @@ static void print_time(gnutls_buffer_st *str, time_t t
struct tm t;
if (gmtime_r(&timestamp, &t) == NULL) {
- addf(str, "error: gmtime_r (%lu)\n", timestamp);
+ addf(str, "error: gmtime_r (%lld)\n", timestamp);
return;
}
if (strftime(s, max, "%a, %b %d %H:%M:%S UTC %Y", &t) == 0)
- addf(str, "error: strftime (%lu)\n", timestamp);
+ addf(str, "error: strftime (%lld)\n", timestamp);
else
addf(str, "%s\n", s);
}