summaryrefslogtreecommitdiff
path: root/usr.bin/top/top.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-10-04 21:19:39 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-10-04 21:19:39 +0000
commit39dd0c638ab9bed7cb808a097ce125d3a3f030b9 (patch)
tree311151a1d0c470affec4af5a12cd7e8e269da524 /usr.bin/top/top.c
parentc0c77480b9e0ffae543785986b90991c3def88ad (diff)
Fixes a format string error in the kill (k) command; vort@wiretapped.net
Diffstat (limited to 'usr.bin/top/top.c')
-rw-r--r--usr.bin/top/top.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/top/top.c b/usr.bin/top/top.c
index 76c31480081..dbb0d6a7b75 100644
--- a/usr.bin/top/top.c
+++ b/usr.bin/top/top.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: top.c,v 1.3 1999/05/23 17:19:21 aaron Exp $ */
+/* $OpenBSD: top.c,v 1.4 2000/10/04 21:19:38 millert Exp $ */
const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre";
@@ -761,7 +761,7 @@ Usage: %s [-ISbinqu] [-d x] [-s x] [-o field] [-U username] [number]\n",
{
if ((errmsg = kill_procs(tempbuf2)) != NULL)
{
- new_message(MT_standout, errmsg);
+ new_message(MT_standout, "%s", errmsg);
putchar('\r');
no_command = Yes;
}
@@ -778,7 +778,7 @@ Usage: %s [-ISbinqu] [-d x] [-s x] [-o field] [-U username] [number]\n",
{
if ((errmsg = renice_procs(tempbuf2)) != NULL)
{
- new_message(MT_standout, errmsg);
+ new_message(MT_standout, "%s", errmsg);
putchar('\r');
no_command = Yes;
}