--- ncurses-5.5/ncurses/tinfo/lib_termcap.c.tgetent 2006-12-07 13:07:03.000000000 +0100 +++ ncurses-5.5/ncurses/tinfo/lib_termcap.c 2006-12-07 13:07:04.000000000 +0100 @@ -135,6 +135,7 @@ } LAST_TRM = cur_term; LAST_SEQ = ++sequence; + LAST_BUF = 0; PC = 0; UP = 0;