PC-BSD/trueos 77fead5usr.bin/top display.c

Fix more AddressSanitizer violations in usr.bin/top

In line_update(), set lastcol correctly after moving to any non-zero
column, so the "overwrite old stuff" part does not attempt to address
negative offsets in the current line.

Rewrite setup_buffer() to always allocate at least 80 characters,
otherwise various calls to summary_format() will overwrite the end of
the buffers, if the screen width gets small enough.

MFC after:      1 week
DeltaFile
+23-29usr.bin/top/display.c
+23-291 files

UnifiedSplitRaw