From 565e71153b10be089e4e2f561dd912f0e639a7c9 Mon Sep 17 00:00:00 2001 From: John Marino Date: Tue, 14 May 2013 12:21:30 +0200 Subject: [PATCH] top(1): Support wider terminals (Bug 2448) Bump MAX_COLS from value of 255 to 512 to support wider terminals. A similar change was also done on FreeBSD 5 months ago (r244180) Reported-by: Charles Rapenne https://bugs.dragonflybsd.org/issues/2448 --- contrib/top/top.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/top/top.h b/contrib/top/top.h index c50046af4f..876024269e 100644 --- a/contrib/top/top.h +++ b/contrib/top/top.h @@ -42,7 +42,7 @@ #include /* Maximum number of columns allowed for display */ -#define MAX_COLS 255 +#define MAX_COLS 512 /* Log base 2 of 1024 is 10 (2^10 == 1024) */ #define LOG1024 10 -- 2.41.0