diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-16 02:26:21 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-09-16 02:26:21 +0000 |
commit | 1ba211e9e7ab7bc9fa7df3a53c21fabf4cefb8cd (patch) | |
tree | 987a6ed960da085fa3c6fe8cdf8d6302efb8b4e6 /usr.bin/wall/wall.c | |
parent | 4f9ed018c2821547c76751bc31486972cf13f8a7 (diff) |
_PATH_TMP -> _PATH_TMPFILE; avoid /tmp//fooXXXX where possible too
Diffstat (limited to 'usr.bin/wall/wall.c')
-rw-r--r-- | usr.bin/wall/wall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/wall/wall.c b/usr.bin/wall/wall.c index b96980ce8e4..1878b2ac7b6 100644 --- a/usr.bin/wall/wall.c +++ b/usr.bin/wall/wall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wall.c,v 1.6 1996/09/02 09:07:35 deraadt Exp $ */ +/* $OpenBSD: wall.c,v 1.7 1996/09/16 02:26:18 deraadt Exp $ */ /* $NetBSD: wall.c,v 1.6 1994/11/17 07:17:58 jtc Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)wall.c 8.2 (Berkeley) 11/16/93"; #endif -static char rcsid[] = "$OpenBSD: wall.c,v 1.6 1996/09/02 09:07:35 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: wall.c,v 1.7 1996/09/16 02:26:18 deraadt Exp $"; #endif /* not lint */ /* @@ -190,7 +190,7 @@ makemsg(fname) char tmpbuf[5]; (void)strcpy(tmpname, _PATH_TMP); - (void)strcat(tmpname, "/wall.XXXXXX"); + (void)strcat(tmpname, "wall.XXXXXX"); if (!(fd = mkstemp(tmpname)) || !(fp = fdopen(fd, "r+"))) { (void)fprintf(stderr, "wall: can't open temporary file.\n"); exit(1); |