From b910f0966d9efea93ea8cef491000a83ffb49c5e Mon Sep 17 00:00:00 2001 From: Tatsuya Kinoshita Date: Wed, 24 Aug 2016 19:05:23 +0900 Subject: Truncate max_width for renderTable Bug-Debian: https://github.com/tats/w3m/issues/25 --- table.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'table.c') diff --git a/table.c b/table.c index d43fa2b..002498d 100644 --- a/table.c +++ b/table.c @@ -1723,6 +1723,10 @@ renderTable(struct table *t, int max_width, struct html_feed_environ *h_env) if (max_width < rulewidth) max_width = rulewidth; +#define MAX_TABWIDTH 10000 + if (max_width > MAX_TABWIDTH) + max_width = MAX_TABWIDTH; + check_maximum_width(t); #ifdef MATRIX -- cgit v1.2.3