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