]> granicus.if.org Git - procps-ng/commit
top: make that 'make_str_utf8' function more efficient
authorJim Warner <james.warner@comcast.net>
Wed, 4 Oct 2017 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@enc.com.au>
Fri, 6 Oct 2017 22:01:55 +0000 (09:01 +1100)
commitabde5d7d5e78a413a9f1a62ed3d6cc0e936bcf07
tree97f348ffcaa6309c243e5e80127e966764d4f6ea
parent6597ac227de1cdb68bedd07a418b064d405f9daa
top: make that 'make_str_utf8' function more efficient

Upon reflection, there was absolutely no justification
for that call to strlen() which was then followed by a
call to snprintf(). The latter provides this needed #.

[ also make that 'delta' value a little more visible ]
[ instead of hiding it at the end of a its code line ]

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