When running terminfo but compiled for termcap, we cannot assume that we actually have anything useable in termcap_term_buffer so just use the terminfo fixed size defined ealier. --- src/term.c 2010-01-14 22:17:00.000000000 +0000 +++ src/term.c 2010-01-14 22:22:09.000000000 +0000 @@ -3593,7 +3593,6 @@ #ifndef TERMINFO if (strlen (tty->termcap_term_buffer) >= buffer_size) abort (); - buffer_size = strlen (tty->termcap_term_buffer); #endif tty->termcap_strings_buffer = area = (char *) xmalloc (buffer_size); tty->TS_ins_line = tgetstr ("al", address);