aboutsummaryrefslogtreecommitdiff
path: root/mail/mutt
diff options
context:
space:
mode:
authorKirill Ponomarev <krion@FreeBSD.org>2004-05-11 07:35:17 +0000
committerKirill Ponomarev <krion@FreeBSD.org>2004-05-11 07:35:17 +0000
commit5ab880074ec2f3864bf034a296882111cd9ce227 (patch)
tree006d16b790499656003bb1e6259717d6523d4b51 /mail/mutt
parentb52b6ef55777cdf23b9a79ad155dc6a42ea6ccb3 (diff)
downloadports-5ab880074ec2f3864bf034a296882111cd9ce227.tar.gz
ports-5ab880074ec2f3864bf034a296882111cd9ce227.zip
Notes
Diffstat (limited to 'mail/mutt')
-rw-r--r--mail/mutt/files/patch-mktemp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mutt/files/patch-mktemp b/mail/mutt/files/patch-mktemp
index e8c26f8fc061..8fc82de528d7 100644
--- a/mail/mutt/files/patch-mktemp
+++ b/mail/mutt/files/patch-mktemp
@@ -7,9 +7,9 @@
- snprintf (s, _POSIX_PATH_MAX, "%s/mutt-%s-%d-%d", NONULL (Tempdir), NONULL(Hostname), (int) getpid (), Counter++);
+ char t[7];
+ snprintf (t, 7, "-%05d", Counter++);
-+ snprintf (s, _POSIX_PATH_MAX-7, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname));
++ snprintf (s, _POSIX_PATH_MAX-6, "%s/mutt-%s-XXXXXXXX", NONULL(Tempdir), NONULL(Hostname));
+ mktemp (s);
-+ strncat(s, t, _POSIX_PATH_MAX);
++ strncat(s, t, 6);
unlink (s);
}