opnsense-ports/sysutils/safecat/files/patch-tempfile.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

11 lines
445 B
C

--- 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. */