summaryrefslogtreecommitdiff
path: root/editors/emacs21/patches
diff options
context:
space:
mode:
authorroy <roy@pkgsrc.org>2010-01-20 03:21:20 +0000
committerroy <roy@pkgsrc.org>2010-01-20 03:21:20 +0000
commitde21f6a47e578a080967519a19f206886ba41817 (patch)
tree6a4859a194f3518d894a17e7d216d6421ee806d0 /editors/emacs21/patches
parent00e17fb815ea10c457433a497179f317bdf97eb6 (diff)
downloadpkgsrc-de21f6a47e578a080967519a19f206886ba41817.tar.gz
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.
Diffstat (limited to 'editors/emacs21/patches')
-rw-r--r--editors/emacs21/patches/patch-cf18
1 files changed, 18 insertions, 0 deletions
diff --git a/editors/emacs21/patches/patch-cf b/editors/emacs21/patches/patch-cf
new file mode 100644
index 00000000000..cf3203bf1df
--- /dev/null
+++ b/editors/emacs21/patches/patch-cf
@@ -0,0 +1,18 @@
+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 21:25:59.000000000 +0000
++++ src/term.c 2010-01-14 21:26:27.000000000 +0000
+@@ -1647,11 +1647,7 @@
+ terminal_type);
+ #endif
+ }
+-#ifdef TERMINFO
+ area = (char *) xmalloc (2044);
+-#else
+- area = (char *) xmalloc (strlen (buffer));
+-#endif /* not TERMINFO */
+ if (area == 0)
+ abort ();
+