]> granicus.if.org Git - procps-ng/commit
top: plug a small potential hole in multi-byte support
authorJim Warner <james.warner@comcast.net>
Sun, 1 Oct 2017 22:59:59 +0000 (17:59 -0500)
committerCraig Small <csmall@enc.com.au>
Mon, 2 Oct 2017 11:23:13 +0000 (22:23 +1100)
commite189569db29ca7531fa8e53b7489d1830cf12b6f
treec42aaf2f50f3d11451386a1d560044b9dbb0a22e
parent9ea00210706a8aed8b30a1832c693678926c54d3
top: plug a small potential hole in multi-byte support

Unlike the insp_mkrow_raw function the insp_mkrow_utf8
routine is not equipped to print non-ctl, non-printing
characters like '<7f>'. However, technically that very
value currently slips through the cracks. So with this
patch top will now print a space in the unlikely event
a character with the value of 127 is ever encountered.

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c