]> granicus.if.org Git - procps-ng/commit
top: avoid potential truncation with 'Inspect' feature
authorJim Warner <james.warner@comcast.net>
Fri, 26 Jan 2018 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@enc.com.au>
Mon, 19 Feb 2018 09:33:59 +0000 (20:33 +1100)
commit3aa348ad77476f01a44b5fb98c5a6f33cc3ceadf
tree0ee4e3c5fe58d5b9f793292c575198cb688e0a80
parent603129e60a147e1748f1cdd6e5674b981d143930
top: avoid potential truncation with 'Inspect' feature

As it turns out, that Ukrainian 'demo' text supporting
the '=' command was 152 bytes long, up from an English
version of 80 bytes. Unfortunately, the buffer used to
format all such strings was insufficient at 128 bytes.

Depending on the width of one's terminal, some strange
result could be experienced when a multi-byte sequence
was truncated. So, this just makes that buffer bigger.

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