From: Philip Hazel Date: Mon, 20 Jun 2005 10:28:33 +0000 (+0000) Subject: Return "100" instead of NULL from prvs function if system clock is way X-Git-Tag: exim-4_52~36 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e169f56779604e217b72e65771a909216c108a6c;p=exim.git Return "100" instead of NULL from prvs function if system clock is way out. --- diff --git a/src/src/expand.c b/src/src/expand.c index 6811c2940..b30679d76 100644 --- a/src/src/expand.c +++ b/src/src/expand.c @@ -1,4 +1,4 @@ -/* $Cambridge: exim/src/src/expand.c,v 1.30 2005/06/20 10:04:55 ph10 Exp $ */ +/* $Cambridge: 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 @@ prvs_daystamp(int day_offset) 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"; }