summaryrefslogtreecommitdiff
path: root/usr.bin/w
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-06 20:41:33 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-06 20:41:33 +0000
commit33de205fc642281879119f653507277f32f521dd (patch)
tree11cced9661e6204d5adc8c268779935812780287 /usr.bin/w
parente9ffe68bb263b3690002ccb0ff8602ed385e44dd (diff)
_POSIX2_LINE_MAX errbuf for kvm_openfiles()
Diffstat (limited to 'usr.bin/w')
-rw-r--r--usr.bin/w/w.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index fae6dbbb875..70bf5224dbb 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w.c,v 1.4 1996/06/26 05:42:45 deraadt Exp $ */
+/* $OpenBSD: w.c,v 1.5 1996/08/06 20:41:32 deraadt Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -76,6 +76,7 @@ static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94";
#include <string.h>
#include <tzfile.h>
#include <unistd.h>
+#include <limits.h>
#include <utmp.h>
#include <vis.h>
@@ -125,7 +126,7 @@ main(argc, argv)
u_long l;
int ch, i, nentries, nusers, wcmd;
char *memf, *nlistf, *p, *x;
- char buf[MAXHOSTNAMELEN], errbuf[256];
+ char buf[MAXHOSTNAMELEN], errbuf[_POSIX2_LINE_MAX];
/* Are we w(1) or uptime(1)? */
p = __progname;