mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
f2c177d47a
PR: ports/65447 Submitted by: maintainer
13 lines
382 B
Plaintext
13 lines
382 B
Plaintext
--- muttlib.c.orig Mon Feb 9 08:25:28 2004
|
|
+++ muttlib.c Mon Feb 9 08:32:46 2004
|
|
@@ -656,7 +656,8 @@
|
|
|
|
void mutt_mktemp (char *s)
|
|
{
|
|
- snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++);
|
|
+ snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname));
|
|
+ mkstemp (s);
|
|
unlink (s);
|
|
}
|
|
|