diff options
author | roy <roy@pkgsrc.org> | 2010-01-20 03:21:20 +0000 |
---|---|---|
committer | roy <roy@pkgsrc.org> | 2010-01-20 03:21:20 +0000 |
commit | de21f6a47e578a080967519a19f206886ba41817 (patch) | |
tree | 6a4859a194f3518d894a17e7d216d6421ee806d0 /editors/emacs21/patches | |
parent | 00e17fb815ea10c457433a497179f317bdf97eb6 (diff) | |
download | pkgsrc-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-cf | 18 |
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 (); + |