From 70cf0d7ec34bb8b8e775891d25b814abab57f14c Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 3 Nov 2000 22:00:10 +0000 Subject: [PATCH] Fix another possible bufer overflow in top. PR: bin/22496 --- contrib/top/top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/top/top.c b/contrib/top/top.c index 3123a0db0ba0..94a02f2c424a 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; }