/* 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.