diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-05 13:11:08 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-11-05 13:11:08 +0000 |
commit | 3cd7077c1905416c779bbd268a0b9e41fff72e49 (patch) | |
tree | fdb28ed48e432bb0e47830e0721008c7e0cb02c6 /usr.bin/rwall | |
parent | c4c4dc76753a5e94426d15536edeba5c7714a6dc (diff) |
make sure files are MAXPATHLEN sized; ianm@cit.uws.edu.au
Diffstat (limited to 'usr.bin/rwall')
-rw-r--r-- | usr.bin/rwall/rwall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/rwall/rwall.c b/usr.bin/rwall/rwall.c index 8f016c97765..e7f6ca9a57d 100644 --- a/usr.bin/rwall/rwall.c +++ b/usr.bin/rwall/rwall.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rwall.c,v 1.5 1999/05/30 08:21:15 deraadt Exp $ */ +/* $OpenBSD: rwall.c,v 1.6 2001/11/05 13:11:07 deraadt Exp $ */ /* * Copyright (c) 1993 Christopher G. Demetriou @@ -42,7 +42,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)wall.c 5.14 (Berkeley) 3/2/91";*/ -static char rcsid[] = "$OpenBSD: rwall.c,v 1.5 1999/05/30 08:21:15 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: rwall.c,v 1.6 2001/11/05 13:11:07 deraadt Exp $"; #endif /* not lint */ /* @@ -124,7 +124,7 @@ makemsg(fname) time_t now; FILE *fp; int fd; - char *whom, hostname[MAXHOSTNAMELEN], lbuf[100], tmpname[64]; + char *whom, hostname[MAXHOSTNAMELEN], lbuf[100], tmpname[MAXPATHLEN]; snprintf(tmpname, sizeof(tmpname), "%s/wall.XXXXXX", _PATH_TMP); if ((fd = mkstemp(tmpname)) == -1 || !(fp = fdopen(fd, "r+"))) { |