aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt14/files/patch-mktemp
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mutt14/files/patch-mktemp')
-rw-r--r--mail/mutt14/files/patch-mktemp12
1 files changed, 12 insertions, 0 deletions
diff --git a/mail/mutt14/files/patch-mktemp b/mail/mutt14/files/patch-mktemp
new file mode 100644
index 000000000000..56bc36e7cd91
--- /dev/null
+++ b/mail/mutt14/files/patch-mktemp
@@ -0,0 +1,12 @@
+--- 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));
++ mktemp (s);
+ unlink (s);
+ }
+