summaryrefslogtreecommitdiffstats
path: root/contrib/top/top.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-11-03 22:00:10 +0000
committerimp <imp@FreeBSD.org>2000-11-03 22:00:10 +0000
commit9b7d83c3842e1e892a8efd791970211df5aef9ae (patch)
tree64636f9846890ea997d6d6dc2f9a272ddb547e99 /contrib/top/top.c
parent4db8e6376f22692a3f9b7070a3e922deda21a8a3 (diff)
downloadFreeBSD-src-9b7d83c3842e1e892a8efd791970211df5aef9ae.zip
FreeBSD-src-9b7d83c3842e1e892a8efd791970211df5aef9ae.tar.gz
Fix another possible bufer overflow in top.
PR: bin/22496
Diffstat (limited to 'contrib/top/top.c')
-rw-r--r--contrib/top/top.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/top/top.c b/contrib/top/top.c
index 3123a0d..94a02f2 100644
--- a/contrib/top/top.c
+++ b/contrib/top/top.c
@@ -826,7 +826,7 @@ Usage: %s [-ISbinqut] [-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;
}
OpenPOWER on IntegriCloud