diff options
| author | Tatsuya Kinoshita <tats@debian.org> | 2016-08-24 10:05:23 +0000 |
|---|---|---|
| committer | Tatsuya Kinoshita <tats@debian.org> | 2016-08-24 10:05:58 +0000 |
| commit | b910f0966d9efea93ea8cef491000a83ffb49c5e (patch) | |
| tree | 971fe1cb6c1550f48f0886d9aefaf92b2b1ed1a0 | |
| parent | Update ChangeLog (diff) | |
| download | w3m-b910f0966d9efea93ea8cef491000a83ffb49c5e.tar.gz w3m-b910f0966d9efea93ea8cef491000a83ffb49c5e.zip | |
Truncate max_width for renderTable
Bug-Debian: https://github.com/tats/w3m/issues/25
| -rw-r--r-- | table.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |
