diff options
author | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-06-20 10:28:33 +0000 |
---|---|---|
committer | Philip Hazel <ph10@hermes.cam.ac.uk> | 2005-06-20 10:28:33 +0000 |
commit | e169f56779604e217b72e65771a909216c108a6c (patch) | |
tree | d3286cd7790737409617129f556999531851775d /src | |
parent | 1549ea3b295d116c7aee9a9f8c5bf96aa5ff38a7 (diff) |
Return "100" instead of NULL from prvs function if system clock is way
out.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/expand.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"; } |