From: epg <> Date: Sat, 30 Nov 2002 07:25:13 +0000 (+0000) Subject: (TMPNAMLEN): Whoops, forgot to account for the two dots in the temp X-Git-Url: https://diplodocus.org/git/mdeliver/commitdiff_plain/8c264e9474b51bc0ff443f4c5a7347fe08b1b048 (TMPNAMLEN): Whoops, forgot to account for the two dots in the temp file name. --- 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.