]> git.netwichtig.de Git - user/henk/code/exim.git/blobdiff - src/src/transports/appendfile.c
Use TIME_T_FMT for formatting tv_sec. Bug 1561
[user/henk/code/exim.git] / src / src / transports / appendfile.c
index db3b5aeeea0e670bdb68111a3c0a227654def106..d8664be2e7e4d862a90fbfca3ad5fe3a543f5fb6 100644 (file)
@@ -1620,6 +1620,7 @@ if (!isdirectory)
 
   if (ob->use_lockfile)
     {
+    /* cf. exim_lock.c */
     lockname = string_sprintf("%s.lock", filename);
     hitchname = string_sprintf( "%s.%s.%08x.%08x", lockname, primary_hostname,
       (unsigned int)(time(NULL)), (unsigned int)getpid());
@@ -2539,8 +2540,8 @@ else
       uschar *basename;
 
       (void)gettimeofday(&msg_tv, NULL);
-      basename = string_sprintf("%lu.H%luP%lu.%s", msg_tv.tv_sec,
-        msg_tv.tv_usec, getpid(), primary_hostname);
+      basename = string_sprintf(TIME_T_FMT ".H%luP%lu.%s",
+               msg_tv.tv_sec, msg_tv.tv_usec, getpid(), primary_hostname);
 
       filename = dataname = string_sprintf("tmp/%s", basename);
       newname = string_sprintf("new/%s", basename);