Fix another possible bufer overflow in top.

PR: bin/22496
This commit is contained in:
Warner Losh 2000-11-03 22:00:10 +00:00
parent 4ce977b412
commit 70cf0d7ec3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=68293

View File

@ -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;
}