Line 0
Link Here
|
|
|
1 |
--- muttlib.c.orig Sun Feb 1 18:15:17 2004 |
2 |
+++ muttlib.c Mon Feb 9 08:44:36 2004 |
3 |
@@ -657,7 +657,8 @@ |
4 |
|
5 |
void _mutt_mktemp (char *s, const char *src, int line) |
6 |
{ |
7 |
- snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++); |
8 |
+ snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname)); |
9 |
+ mktemp (s); |
10 |
dprint (1, (debugfile, "%s:%d: mutt_mktemp returns \"%s\".\n", src, line, s)); |
11 |
unlink (s); |
12 |
} |