diff options
Diffstat (limited to 'editors/emacs20/patches/patch-cf')
-rw-r--r-- | editors/emacs20/patches/patch-cf | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/editors/emacs20/patches/patch-cf b/editors/emacs20/patches/patch-cf new file mode 100644 index 00000000000..cf3203bf1df --- /dev/null +++ b/editors/emacs20/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 (); + |