X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsrc%2Ftod.c;h=5f451ba96de445e6b52a60b01f5a04a9ed4bc8dd;hb=b6040544759110aa97f93e9ba0dd8232cd5e5188;hp=0297e375e5c7940ed5200271c026136927071894;hpb=19050083522f210e8bb4f1a5ba03928ed0077a49;p=user%2Fhenk%2Fcode%2Fexim.git diff --git a/src/src/tod.c b/src/src/tod.c index 0297e375e..5f451ba96 100644 --- a/src/src/tod.c +++ b/src/src/tod.c @@ -2,7 +2,7 @@ * Exim - an Internet mail transport agent * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2009 */ +/* Copyright (c) University of Cambridge 1995 - 2014 */ /* See the file NOTICE for conditions of use and distribution. */ /* A function for returning the time of day in various formats */ @@ -60,7 +60,7 @@ if (type == tod_epoch_l) struct timeval tv; gettimeofday(&tv, NULL); /* Unix epoch/usec format */ - (void) sprintf(CS timebuf, "%ld%06ld", tv.tv_sec, (long) tv.tv_usec ); + (void) sprintf(CS timebuf, TIME_T_FMT "%06ld", tv.tv_sec, (long) tv.tv_usec ); return timebuf; }