summaryrefslogtreecommitdiff
path: root/usr.bin/mail/temp.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/mail/temp.c')
-rw-r--r--usr.bin/mail/temp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mail/temp.c b/usr.bin/mail/temp.c
index 2b9d224a862..e3c88b2c7d3 100644
--- a/usr.bin/mail/temp.c
+++ b/usr.bin/mail/temp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: temp.c,v 1.15 2009/10/27 23:59:40 deraadt Exp $ */
+/* $OpenBSD: temp.c,v 1.16 2015/10/16 17:56:07 mmcc Exp $ */
/* $NetBSD: temp.c,v 1.5 1996/06/08 19:48:42 christos Exp $ */
/*
@@ -49,7 +49,7 @@ tinit(void)
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
tmpdir = _PATH_TMP;
if ((tmpdir = strdup(tmpdir)) == NULL)
- errx(1, "Out of memory");
+ err(1, "strdup");
/* Strip trailing '/' if necessary */
cp = tmpdir + strlen(tmpdir) - 1;