[exim-cvs] cvs commit: exim/exim-src/src expand.c

Góra strony
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
Dla: exim-cvs
Temat: [exim-cvs] cvs commit: exim/exim-src/src expand.c
ph10 2005/06/20 11:28:33 BST

  Modified files:
    exim-src/src         expand.c 
  Log:
  Return "100" instead of NULL from prvs function if system clock is way
  out.


  Revision  Changes    Path
  1.31      +1 -1      exim/exim-src/src/expand.c


  Index: expand.c
  ===================================================================
  RCS file: /home/cvs/exim/exim-src/src/expand.c,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- expand.c    20 Jun 2005 10:04:55 -0000    1.30
  +++ expand.c    20 Jun 2005 10:28:33 -0000    1.31
  @@ -1,4 +1,4 @@
  -/* $Cambridge: exim/exim-src/src/expand.c,v 1.30 2005/06/20 10:04:55 ph10 Exp $ */
  +/* $Cambridge: exim/exim-src/src/expand.c,v 1.31 2005/06/20 10:28:33 ph10 Exp $ */


   /*************************************************
   *     Exim - an Internet mail transport agent    *
  @@ -2493,7 +2493,7 @@
   uschar *days = store_get(16);
   (void)string_format(days, 16, TIME_T_FMT,
     (time(NULL) + day_offset*86400)/86400);
  -return (Ustrlen(days) >= 3) ? &days[Ustrlen(days)-3] : NULL;
  +return (Ustrlen(days) >= 3) ? &days[Ustrlen(days)-3] : US"100";
   }