summaryrefslogtreecommitdiff
path: root/editors/emacs24/patches/patch-ag
blob: 09d6a7bd417872ac9d2986c520899c2acb77b815 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$NetBSD: patch-ag,v 1.1 2012/06/16 21:03:42 dholland 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 2010-01-06 10:11:04.000000000 +0000
+++ src/term.c	2012-06-09 13:23:09.000000000 +0900
@@ -3161,11 +3161,6 @@
                    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);