mirror of
https://gitlab.com/procps-ng/procps.git
synced 2024-11-27 03:54:06 +08:00
top: fix previous fix of the coverity CID #427133 flaw
Reference(s):
https://gitlab.com/procps-ng/procps/-/issues/356
. Oct, 2024 - original fix
commit 3faac96eec
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
39aab8c464
commit
50e167bf4c
@ -251,14 +251,14 @@ static const char Osel_filterI_fmt[] = "\ttype=%d,\t" OSEL_FILTER "%*s\n";
|
||||
/* Support for adjoining display (if terminal is wide enough) */
|
||||
#ifdef TOG4_SEP_OFF
|
||||
static char Adjoin_sp[] = " ";
|
||||
#define ADJOIN_space (int)(sizeof(Adjoin_sp) - 1) // 1 for null
|
||||
#define ADJOIN_space ((int)(sizeof(Adjoin_sp) - 1)) // 1 for null
|
||||
#else
|
||||
#ifdef TOG4_SEP_STD
|
||||
static char Adjoin_sp[] = "~1 ~6 ";
|
||||
#else
|
||||
static char Adjoin_sp[] = " ~6 ~1";
|
||||
#endif
|
||||
#define ADJOIN_space (int)(sizeof(Adjoin_sp) - 5) // 1 for null + 4 unprintable
|
||||
#define ADJOIN_space ((int)(sizeof(Adjoin_sp) - 5)) // 1 for null + 4 unprintable
|
||||
#endif
|
||||
#define ADJOIN_limit 8
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user