summaryrefslogtreecommitdiff
path: root/usr.bin/wall
diff options
context:
space:
mode:
authorAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-07-02 00:21:18 +0000
committerAnil Madhavapeddy <avsm@cvs.openbsd.org>2003-07-02 00:21:18 +0000
commit21c07ea0182ba3f51a05a4b8b8c9840a807a7576 (patch)
tree3c612aa062ab4b2efd3dd1a00e7a5827bb7ade60 /usr.bin/wall
parentfca075bce30674cbd0b5e369662204aa742741ce (diff)
bump randomness of mktemp to from 6 to 10 X's, as recommended by mktemp(3)
Diffstat (limited to 'usr.bin/wall')
-rw-r--r--usr.bin/wall/wall.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/wall/wall.c b/usr.bin/wall/wall.c
index d0d3c7ff823..73d9101b92c 100644
--- a/usr.bin/wall/wall.c
+++ b/usr.bin/wall/wall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wall.c,v 1.19 2003/06/25 21:09:53 deraadt Exp $ */
+/* $OpenBSD: wall.c,v 1.20 2003/07/02 00:21:17 avsm Exp $ */
/* $NetBSD: wall.c,v 1.6 1994/11/17 07:17:58 jtc Exp $ */
/*
@@ -40,7 +40,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "@(#)wall.c 8.2 (Berkeley) 11/16/93";
#endif
-static const char rcsid[] = "$OpenBSD: wall.c,v 1.19 2003/06/25 21:09:53 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: wall.c,v 1.20 2003/07/02 00:21:17 avsm Exp $";
#endif /* not lint */
/*
@@ -166,7 +166,7 @@ makemsg(char *fname)
char tmpbuf[5];
char *ttynam;
- snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXX", _PATH_TMP);
+ snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXXXXXX", _PATH_TMP);
if ((fd = mkstemp(tmpname)) >= 0) {
(void)unlink(tmpname);
fp = fdopen(fd, "r+");