summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2000-07-07 21:07:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2000-07-07 21:07:42 +0000
commit70d73926f815faa59a4266797933ee9fee89a8d3 (patch)
tree24895dee21c79dbed624061a6b210f94b7a5f793
parent642564cc7110fc420b93eb4b9174bf313cd8329f (diff)
heck, be more careful with printf here too
-rw-r--r--usr.bin/w/w.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 8c94c4e9852..7bc0181dd5e 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w.c,v 1.28 1999/08/12 19:26:39 millert Exp $ */
+/* $OpenBSD: w.c,v 1.29 2000/07/07 21:07:41 deraadt Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)w.c 8.4 (Berkeley) 4/16/94";
#else
-static char *rcsid = "$OpenBSD: w.c,v 1.28 1999/08/12 19:26:39 millert Exp $";
+static char *rcsid = "$OpenBSD: w.c,v 1.29 2000/07/07 21:07:41 deraadt Exp $";
#endif
#endif /* not lint */
@@ -240,7 +240,7 @@ main(argc, argv)
#define HEADER "USER TTY FROM LOGIN@ IDLE WHAT\n"
#define WUSED (sizeof (HEADER) - sizeof ("WHAT\n"))
- (void)printf(HEADER);
+ (void)printf("%s", HEADER);
if ((kp = kvm_getprocs(kd, KERN_PROC_ALL, 0, &nentries)) == NULL)
errx(1, "%s", kvm_geterr(kd));