2004-05-10 11:37:58 +00:00
|
|
|
--- muttlib.c.orig Fri May 7 17:30:35 2004
|
|
|
|
+++ muttlib.c Fri May 7 17:32:13 2004
|
|
|
|
@@ -656,7 +656,11 @@
|
2004-02-09 15:28:15 +00:00
|
|
|
|
|
|
|
void mutt_mktemp (char *s)
|
|
|
|
{
|
|
|
|
- snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++);
|
2004-05-10 11:37:58 +00:00
|
|
|
+ char t[7];
|
|
|
|
+ snprintf (t, 7, "-%05d", Counter++);
|
2004-05-11 07:35:17 +00:00
|
|
|
+ snprintf (s, _POSIX_PATH_MAX-6, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname));
|
2004-02-09 15:28:15 +00:00
|
|
|
+ mktemp (s);
|
2004-05-11 07:35:17 +00:00
|
|
|
+ strncat(s, t, 6);
|
2004-02-09 15:28:15 +00:00
|
|
|
unlink (s);
|
|
|
|
}
|
|
|
|
|