$NetBSD: patch-ag,v 1.3 2010/06/07 22:44:01 minskim Exp $

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.orig	2010-06-02 16:53:42.000000000 +0000
+++ src/term.c
@@ -3635,11 +3635,6 @@ use the Bourne shell command `TERM=... e
                    terminal_type);
     }
 
-#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);
   tty->TS_ins_multi_lines = tgetstr ("AL", address);
