summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/tmpfile.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-02-12 20:44:47 +0000
committerderaadt <deraadt@openbsd.org>1997-02-12 20:44:47 +0000
commit9a23e4f5089d0050f4ee719262dc2b5f1994e839 (patch)
treeccfdca39b775ad5552c99609c7544c65bc42ac71 /lib/libc/stdio/tmpfile.c
parentDon't print garbage on EOF. (diff)
downloadwireguard-openbsd-9a23e4f5089d0050f4ee719262dc2b5f1994e839.tar.xz
wireguard-openbsd-9a23e4f5089d0050f4ee719262dc2b5f1994e839.zip
more XXXX for mktemp
Diffstat (limited to 'lib/libc/stdio/tmpfile.c')
-rw-r--r--lib/libc/stdio/tmpfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdio/tmpfile.c b/lib/libc/stdio/tmpfile.c
index fdf116c538e..5f558efee99 100644
--- a/lib/libc/stdio/tmpfile.c
+++ b/lib/libc/stdio/tmpfile.c
@@ -35,7 +35,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: tmpfile.c,v 1.2 1996/08/19 08:33:09 tholo Exp $";
+static char rcsid[] = "$OpenBSD: tmpfile.c,v 1.3 1997/02/12 20:44:49 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
#include <sys/types.h>
@@ -52,7 +52,7 @@ tmpfile()
sigset_t set, oset;
FILE *fp;
int fd, sverrno;
-#define TRAILER "tmp.XXXXXX"
+#define TRAILER "tmp.XXXXXXXXX"
char buf[sizeof(_PATH_TMP) + sizeof(TRAILER)];
(void)memcpy(buf, _PATH_TMP, sizeof(_PATH_TMP) - 1);