More care with time types
[exim.git] / src / src / smtp_in.c
index 4ea6cd404db668e3ebde2185dd21cb6ee226477f..dbaa3280c92bade08ffbdb3eadd303e85286486b 100644 (file)
@@ -1317,7 +1317,8 @@ for (i = 0; i < smtp_ch_index; i++)
 if (s != NULL) s[ptr] = 0; else s = US"";
 log_write(0, LOG_MAIN, "no MAIL in SMTP connection from %s D=%s%s",
   host_and_ident(FALSE),
-  readconf_printtime(time(NULL) - smtp_connection_start), s);
+  readconf_printtime( (int) ((long)time(NULL) - (long)smtp_connection_start)),
+  s);
 }