Description: fix crash on 64 bit time_t
Author: Steve Langasek <steve.langasek@canonical.com>
Forwarded: https://github.com/Atoptool/atop/issues/306
Last-Update: 2024-05-31
--- a/parseable.c
+++ b/parseable.c
@@ -214,10 +214,10 @@ parseout(time_t curtime, int numsecs,
 			convdate(curtime, datestr);
 			convtime(curtime, timestr);
 
-			snprintf(header, sizeof header, "%s %s %ld %s %s %d",
+			snprintf(header, sizeof header, "%s %s %lld %s %s %d",
 				labeldef[i].label,
 				utsname.nodename,
-				curtime,
+				(long long)curtime,
 				datestr, timestr, numsecs);
 
 			/*
