From 8c264e9474b51bc0ff443f4c5a7347fe08b1b048 Mon Sep 17 00:00:00 2001 From: epg <> Date: Sat, 30 Nov 2002 07:25:13 +0000 Subject: [PATCH] (TMPNAMLEN): Whoops, forgot to account for the two dots in the temp file name. --- mdeliver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mdeliver.c b/mdeliver.c index 9e21df3..f36d682 100644 --- a/mdeliver.c +++ b/mdeliver.c @@ -44,9 +44,9 @@ /* holds 2^128 - 1 in decimal, plus '\0' */ #define LEN_ULONG 40 -/* 1 for '\0', 4 for "tmp/", HOST_NAME_MAX for the hostname, and two - * LEN_ULONGs for time and pid. */ -#define TMPNAMLEN 1 + 4 + HOST_NAME_MAX + LEN_ULONG + LEN_ULONG +/* 1 for '\0', 4 for "tmp/", 2 for the two dots ('.'), HOST_NAME_MAX + * for the hostname, and two LEN_ULONGs for time and pid. */ +#define TMPNAMLEN 1 + 4 + 2 + HOST_NAME_MAX + LEN_ULONG + LEN_ULONG /* Use this macro to perform some operation and saving the value errno * had before that operation. -- 2.56.0