summaryrefslogtreecommitdiff
path: root/sysutils/safecat/files/patch-tempfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/safecat/files/patch-tempfile.c')
-rw-r--r--sysutils/safecat/files/patch-tempfile.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/sysutils/safecat/files/patch-tempfile.c b/sysutils/safecat/files/patch-tempfile.c
new file mode 100644
index 000000000000..27ee83c22c40
--- /dev/null
+++ b/sysutils/safecat/files/patch-tempfile.c
@@ -0,0 +1,11 @@
+--- tempfile.c.orig Mon Jul 4 14:43:35 2005
++++ tempfile.c Mon Jul 4 14:43:48 2005
+@@ -26,7 +26,7 @@
+ taia_tai(&now,&sec);
+
+ /* Record the second timestamp on the string. */
+- secbuf[fmt_uint64(secbuf,(uint64) sec.x - 4611686018427387904)] = '\0';
++ secbuf[fmt_uint64(secbuf,(uint64) sec.x - 4611686018427387904ULL)] = '\0';
+ if (!stralloc_cats(tmpf, secbuf)) die_nomem();
+
+ /* Append the microsecond timestamp to the string. */