From ceb4156db8546c98875607dd91a799101b02c22f Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Thu, 1 Jul 2004 00:09:10 -0400 Subject: snapshot of project "lynx", label v2-8-6dev_5 --- src/LYCurses.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/LYCurses.c') diff --git a/src/LYCurses.c b/src/LYCurses.c index 00b8093d..3d6646ac 100644 --- a/src/LYCurses.c +++ b/src/LYCurses.c @@ -474,12 +474,12 @@ void curses_w_style(WINDOW * win, int style, break; case STACK_ON: /* remember the current attributes */ - if (last_colorattr_ptr > 127) { + if (last_colorattr_ptr >= MAX_LAST_STYLES) { CTRACE2(TRACE_STYLE, (tfp, "........... %s (0x%x) %s\r\n", "attribute cache FULL, dropping last", last_styles[last_colorattr_ptr], "in LynxChangeStyle(curses_w_style)")); - last_colorattr_ptr = 127; + last_colorattr_ptr = MAX_LAST_STYLES - 1; } last_styles[last_colorattr_ptr++] = LYgetattrs(win); /* don't cache style changes for active links */ -- cgit 1.4.1-2-gfad0