aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--file.c5
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index ca58aa0..5049fa3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-12-09 Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
+
+ * [w3m-dev 04021] Deeply nested table
+ * file.c (completeHTMLstream): check obuf->table_level
+
2003-10-26 Fumitoshi UKAI <ukai@debian.or.jp>
* Bug#217509: segfaults if TERM is not set
@@ -8261,4 +8266,4 @@ a * [w3m-dev 03276] compile error on EWS4800
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.891 2003/12/08 16:06:33 ukai Exp $
+$Id: ChangeLog,v 1.892 2003/12/08 16:08:01 ukai Exp $
diff --git a/file.c b/file.c
index 8ac334a..69f8eeb 100644
--- a/file.c
+++ b/file.c
@@ -1,4 +1,4 @@
-/* $Id: file.c,v 1.233 2003/10/22 18:41:11 ukai Exp $ */
+/* $Id: file.c,v 1.234 2003/12/08 16:08:01 ukai Exp $ */
#include "fm.h"
#include <sys/types.h>
#include "myctype.h"
@@ -6387,6 +6387,9 @@ completeHTMLstream(struct html_feed_environ *h_env, struct readbuffer *obuf)
HTMLlineproc1("</title>", h_env);
/* for unbalanced table tag */
+ if (obuf->table_level >= MAX_TABLE)
+ obuf->table_level = MAX_TABLE - 1;
+
while (obuf->table_level >= 0) {
table_mode[obuf->table_level].pre_mode
&= ~(TBLM_SCRIPT | TBLM_STYLE | TBLM_PLAIN);