diff options
author | 2000-10-04 21:19:38 +0000 | |
---|---|---|
committer | 2000-10-04 21:19:38 +0000 | |
commit | bd919f0a2785b7140913f35b12a1f804e67748e6 (patch) | |
tree | 83fe881231b40e3d01adfa2ad0ca8945e6af807f | |
parent | use weak symbols in sparc's libc (diff) | |
download | wireguard-openbsd-bd919f0a2785b7140913f35b12a1f804e67748e6.tar.xz wireguard-openbsd-bd919f0a2785b7140913f35b12a1f804e67748e6.zip |
Fixes a format string error in the kill (k) command; vort@wiretapped.net
-rw-r--r-- | usr.bin/top/top.c | 6 |
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; } |