From 6dc2b8c38716180323903c3266db4a5256739c4f Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 8 Jan 2019 16:10:34 +0000 Subject: ps: fix long output when desktop compatibility is disabled In desktop mode the state column is disabled and doesn't affect output. When desktop mode is disabled the state column is displayed in long output. Put some fake data in the column to improve the display. --- win32/process.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'win32') diff --git a/win32/process.c b/win32/process.c index 80f4550ad..7210934fe 100644 --- a/win32/process.c +++ b/win32/process.c @@ -487,6 +487,9 @@ UNUSED_PARAM } memset(&sp->vsz, 0, sizeof(*sp) - offsetof(procps_status_t, vsz)); +#if !ENABLE_DESKTOP + strcpy(sp->state, " "); +#endif #if ENABLE_FEATURE_PS_TIME || ENABLE_FEATURE_PS_LONG if (flags & (PSSCAN_STIME|PSSCAN_UTIME|PSSCAN_START_TIME)) { -- cgit v1.2.3-55-g6feb