]> diplodocus.org Git - mdeliver/commitdiff
(TMPNAMLEN): Whoops, forgot to account for the two dots in the temp
authorepg <>
Sat, 30 Nov 2002 07:25:13 +0000 (07:25 +0000)
committerepg <>
Sat, 30 Nov 2002 07:25:13 +0000 (07:25 +0000)
file name.

mdeliver.c

index 9e21df3..f36d682 100644 (file)
@@ -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.