From b01946742bbda5e54a69636ba8e62cf79b8fc248 Mon Sep 17 00:00:00 2001 From: Jim Warner Date: Sun, 30 Dec 2012 00:00:00 -0600 Subject: [PATCH] top: eliminate task row anomalies with active searches This potential problem is caused by frequently spawned and short lived tasks which happen to sort above a row containing a match from an active Locate request. It's most likely to be visible when under Forest View mode. This commit will eliminate a potential duplicated row. Signed-off-by: Jim Warner --- top/top.h | 1 + 1 file changed, 1 insertion(+) diff --git a/top/top.h b/top/top.h index 8182a56b..489708e9 100644 --- a/top/top.h +++ b/top/top.h @@ -509,6 +509,7 @@ typedef struct WIN_t { but would otherwise have been counted as a Pseudo_row */ #define POOF(str,cap) do { \ putp(str); putp(cap); \ + Pseudo_screen[Pseudo_row * ROWMAXSIZ] = '\0'; \ if (Pseudo_row + 1 < Screen_rows) ++Pseudo_row; \ } while (0)