summaryrefslogtreecommitdiff
path: root/editors/emacs21/patches/patch-cf
diff options
context:
space:
mode:
authorroy <roy>2010-01-20 03:21:20 +0000
committerroy <roy>2010-01-20 03:21:20 +0000
commita2431d9466ec511a18083160244ee296636e702f (patch)
tree6a4859a194f3518d894a17e7d216d6421ee806d0 /editors/emacs21/patches/patch-cf
parentb2e1ed8af4ae238822f5b9130c916f4fc20ac43b (diff)
downloadpkgsrc-a2431d9466ec511a18083160244ee296636e702f.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/patch-cf')
-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 ();
+