diff --git a/top/top.c b/top/top.c index bdfcf20a..9996fbf8 100644 --- a/top/top.c +++ b/top/top.c @@ -1792,6 +1792,7 @@ static void adj_geometry (void) { if (w_cols && w_cols < W_MIN_COL) w_cols = W_MIN_COL; if (w_rows && w_rows < W_MIN_ROW) w_rows = W_MIN_ROW; } + if (w_cols > SCREENMAX) w_cols = SCREENMAX; w_set = 1; }