mirror of
https://gitlab.com/procps-ng/procps.git
synced 2024-11-23 01:53:39 +08:00
top: this just addresses the coverity CID #427133 flaw
Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
parent
29340c4a35
commit
3faac96eec
@ -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 (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 (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