ports/deskutils/ical/files/patch-time_tcl.C
Tobias Kortkamp 1d32e97a18 desktuils/ical: Fix build with Clang 6
- Submitter becomes maintainer
- While here add missing dependencies

http://beefy11.nyi.freebsd.org/data/head-i386-default/p473790_s335878/logs/ical-2.2_4.log

PR:		226799
Reported by:	bob@immure.com
Submitted by:	fbsd@opal.com
2018-07-07 15:35:36 +00:00

11 lines
390 B
C

--- time_tcl.C.orig 1994-05-20 03:22:05 UTC
+++ time_tcl.C
@@ -135,7 +135,7 @@ int Cmd_Date(ClientData, Tcl_Interp* tcl, int argc, ch
TCL_Return(tcl, "0");
// Set variables
- sprintf(buffer, "%d", result.EpochDays());
+ sprintf(buffer, "%ld", result.EpochDays());
if (Tcl_SetVar(tcl, argv[3], buffer, 0) == NULL)
TCL_Error(tcl, "could not set <date> result");