1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-13 10:02:38 +00:00

When toggling the display using the "m" command to toggle from 'cpu'

mode to 'io' mode, an artifact remains because the buffer is not
"finished" with a NULL terminator using sbuf_finish().

An example of this is, when the "m" command is entered, the title line
will contain COMMANDND instead of COMMAND. This commit fixes this.
This commit is contained in:
Cy Schubert 2018-07-03 02:54:32 +00:00
parent 8bedbb4d42
commit 4ee90e6e20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=335881

View File

@ -408,6 +408,7 @@ format_header(const char *uname_field)
ps.jail ? TOP_JID_LEN : 0, ps.jail ? " JID" : "",
namelength, namelength, uname_field);
sbuf_cat(header, " VCSW IVCSW READ WRITE FAULT TOTAL PERCENT COMMAND");
sbuf_finish(header);
break;
}
case DISP_MAX: