--- libwww/Library/src/HTML.c 1997/02/16 17:49:21 1.66
+++ libwww/Library/src/HTML.c 1997/03/21 19:33:15 1.67
@@ -3,7 +3,7 @@
**
** (c) COPYRIGHT MIT 1995.
** Please first read the full copyright statement in the file COPYRIGH.
-** @(#) $Id: HTML.c,v 1.66 1997/02/16 17:49:21 frystyk Exp $
+** @(#) $Id: HTML.c,v 1.67 1997/03/21 19:33:15 frystyk Exp $
**
** This generates of a hypertext object. It converts from the
** structured stream interface fro HTMl events into the style-
@@ -597,6 +597,10 @@ PRIVATE void HTML_end_element (HTStructu
}
me->sp++; /* Pop state off stack */
+ if (me->sp > me->stack + MAX_NESTING - 1) {
+ if (SGML_TRACE) HTTrace("HTML Parser. Bottom of style stack reached\n");
+ me->sp = me->stack + MAX_NESTING - 1;
+ }
switch(element_number) {