Index: src/ptimec.hh
--- src/ptimec.hh.orig
+++ src/ptimec.hh
@@ -331,7 +331,7 @@ ftime_s(char* dst, off_t& off_inout, ssize_t len, cons
 {
     time_t t = tm2sec(&tm.et_tm);
 
-    snprintf(&dst[off_inout], len - off_inout, "%ld", t);
+    snprintf(&dst[off_inout], len - off_inout, "%lld", (long long)t);
     off_inout = strlen(dst);
 }
 
@@ -389,7 +389,7 @@ ftime_q(char* dst, off_t& off_inout, ssize_t len, cons
 {
     time_t t = tm2sec(&tm.et_tm);
 
-    snprintf(&dst[off_inout], len - off_inout, "%lx", t);
+    snprintf(&dst[off_inout], len - off_inout, "%llx", (long long)t);
     off_inout = strlen(dst);
 }
 
